Compare commits

...

1 Commits

Author SHA1 Message Date
LGUG2Z
559fa55b9f hardcoded cursor at top left 2024-11-19 20:49:39 -08:00

View File

@@ -675,7 +675,12 @@ impl WindowsApi {
}
pub fn center_cursor_in_rect(rect: &Rect) -> Result<()> {
Self::set_cursor_pos(rect.left + (rect.right / 2), rect.top + (rect.bottom / 2))
Self::place_cursor_at_top_left_of_rect(rect)
// Self::set_cursor_pos(rect.left + (rect.right / 2), rect.top + (rect.bottom / 2))
}
pub fn place_cursor_at_top_left_of_rect(rect: &Rect) -> Result<()> {
Self::set_cursor_pos(rect.left + 15, rect.top + 15)
}
pub fn window_thread_process_id(hwnd: isize) -> (u32, u32) {