[gtk/present-toplevel-2] win32: Fix up query_state
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/present-toplevel-2] win32: Fix up query_state
- Date: Thu, 12 Mar 2020 11:39:36 +0000 (UTC)
commit 2ee8ce12503b1503b2dec4a55437dc40298e5fec
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Mar 12 07:38:30 2020 -0400
win32: Fix up query_state
gdk/win32/gdkdevice-win32.c | 22 ++++------------------
1 file changed, 4 insertions(+), 18 deletions(-)
---
diff --git a/gdk/win32/gdkdevice-win32.c b/gdk/win32/gdkdevice-win32.c
index 573eb8ce10..569e31f499 100644
--- a/gdk/win32/gdkdevice-win32.c
+++ b/gdk/win32/gdkdevice-win32.c
@@ -92,12 +92,10 @@ get_current_mask (void)
static void
gdk_device_win32_query_state (GdkDevice *device,
- GdkSurface *window,
- GdkSurface **child_window,
- gdouble *root_x,
- gdouble *root_y,
- gdouble *win_x,
- gdouble *win_y,
+ GdkSurface *window,
+ GdkSurface **child_window,
+ double *win_x,
+ double *win_y,
GdkModifierType *mask)
{
POINT point;
@@ -119,12 +117,6 @@ gdk_device_win32_query_state (GdkDevice *device,
GetCursorPos (&point);
- if (root_x)
- *root_x = point.x / scale;
-
- if (root_y)
- *root_y = point.y / scale;
-
if (hwnd)
ScreenToClient (hwnd, &point);
@@ -141,12 +133,6 @@ gdk_device_win32_query_state (GdkDevice *device,
if (win_y)
*win_y += _gdk_offset_y;
-
- if (root_x)
- *root_x += _gdk_offset_x;
-
- if (root_y)
- *root_y += _gdk_offset_y;
}
if (hwnd && child_window)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]