GdkWin32: Fix gdk_win32_window_get_frame_extents

Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/4690
This commit is contained in:
Luca Bacci 2022-02-14 16:16:47 +01:00
parent e6a028bfca
commit 4a8d96b95b
No known key found for this signature in database
GPG Key ID: 8E3C8D989C98883D

View File

@ -2431,8 +2431,8 @@ gdk_win32_window_get_frame_extents (GdkWindow *window,
*/
rect->width = (rect->width + rect->x % impl->window_scale + impl->window_scale - 1) / impl->window_scale;
rect->height = (rect->height + rect->y % impl->window_scale + impl->window_scale - 1) / impl->window_scale;
rect->x = r.left / impl->window_scale;
rect->y = r.top / impl->window_scale;
rect->x /= impl->window_scale;
rect->y /= impl->window_scale;
GDK_NOTE (MISC, g_print ("gdk_window_get_frame_extents: %p: %ldx%ld@%+ld%+ld\n",
GDK_WINDOW_HWND (window),