Skip to content

Commit

Permalink
Fixed comment and typos
Browse files Browse the repository at this point in the history
  • Loading branch information
pacmancoder committed Aug 4, 2023
1 parent 59af316 commit 848b9f4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion crates/ironrdp-session/src/active_stage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ impl ActiveStage {
None => return Ok(output),
};

// Graphics update is only sent when update is visualy changed the framebuffer
// Graphics update is only sent when update is visually changed the framebuffer
if let Some(rect) = image.move_pointer(mouse_x as u16, mouse_y as u16)? {
output.push(ActiveStageOutput::GraphicsUpdate(rect));
}
Expand Down
4 changes: 2 additions & 2 deletions crates/ironrdp-session/src/fast_path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ impl Processor {
self.mouse_pos_update = Some((x, y));
}

/// Process input fast path frame and return the updated region of the image.
/// Process input fast path frame and return list of updates.
pub fn process(
&mut self,
image: &mut DecodedImage,
Expand Down Expand Up @@ -221,7 +221,7 @@ impl Processor {
let cache_index = cached.cache_index;

if let Some(cached_pointer) = self.pointer_cache.get(cache_index as usize) {
// Disable syste pointer
// Disable system pointer
processor_updates.push(UpdateKind::PointerHidden);
self.use_system_pointer = false;
// Send graphics update
Expand Down
2 changes: 1 addition & 1 deletion crates/ironrdp-session/src/image.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ pub struct DecodedImage {
pointer_y: u16,

pointer: Option<Rc<DecodedPointer>>,
/// Image data, overriden by pointer. Used to restore image after pointer was hidden or moved
/// Image data, overridden by pointer. Used to restore image after pointer was hidden or moved
pointer_backbuffer: Vec<u8>,
/// Whether to show pointer or not
show_pointer: bool,
Expand Down
2 changes: 1 addition & 1 deletion crates/ironrdp-testsuite-core/tests/pdu/pointer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ fn new_pointer_32bpp() {
}

#[test]
fn large_poiner_32bpp() {
fn large_pointer_32bpp() {
let data = include_bytes!("../../test_data/pdu/pointer/large_pointer_32bpp.bin");
let mut parsed = ironrdp_pdu::decode::<LargePointerAttribute>(data).unwrap();
let decoded = DecodedPointer::decode_large_pointer_attribute(&parsed).unwrap();
Expand Down

0 comments on commit 848b9f4

Please sign in to comment.