Skip to content

Commit

Permalink
ValidateRect for whole window
Browse files Browse the repository at this point in the history
  • Loading branch information
evmar committed Jun 6, 2024
1 parent 785299d commit 73ca666
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions win32/src/winapi/user32/paint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,14 @@ pub fn InvalidateRect(
}

#[win32_derive::dllexport]
pub fn ValidateRect(_machine: &mut Machine, hWnd: HWND, lpRect: Option<&RECT>) -> bool {
// Just ignore.
pub fn ValidateRect(machine: &mut Machine, hWnd: HWND, lpRect: Option<&RECT>) -> bool {
let window = machine.state.user32.windows.get_mut(hWnd).unwrap();
match lpRect {
Some(_rect) => {
// TODO: ignored.
}
None => window.dirty = None,
}
false // fail
}

Expand Down

0 comments on commit 73ca666

Please sign in to comment.