[gtk/gtk-3-24: 1/2] GdkWin32: Fix gdk_win32_window_get_frame_extents
- From: Luca Bacci <lbacci src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/gtk-3-24: 1/2] GdkWin32: Fix gdk_win32_window_get_frame_extents
- Date: Mon, 14 Feb 2022 20:22:11 +0000 (UTC)
commit 4a8d96b95bdef7ce52a21ecfbc1044b98af29191
Author: Luca Bacci <luca bacci982 gmail com>
Date: Mon Feb 14 16:16:47 2022 +0100
GdkWin32: Fix gdk_win32_window_get_frame_extents
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/4690
gdk/win32/gdkwindow-win32.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gdk/win32/gdkwindow-win32.c b/gdk/win32/gdkwindow-win32.c
index 40f523b569..458cf6e4fc 100644
--- a/gdk/win32/gdkwindow-win32.c
+++ b/gdk/win32/gdkwindow-win32.c
@@ -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),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]