[gtk/gtk-3-24] Reverse signs on gdk <-> ns x coordinate transforms.
- From: John Ralls <jralls src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/gtk-3-24] Reverse signs on gdk <-> ns x coordinate transforms.
- Date: Mon, 11 Mar 2019 23:54:14 +0000 (UTC)
commit 0524362721058b807a154da0bb0437c6b2c2d1ba
Author: John Ralls <jralls ceridwen us>
Date: Fri Mar 8 15:01:11 2019 -0800
Reverse signs on gdk <-> ns x coordinate transforms.
Closes https://gitlab.gnome.org/GNOME/gtk/issues/1711
gdk/quartz/gdkwindow-quartz.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gdk/quartz/gdkwindow-quartz.c b/gdk/quartz/gdkwindow-quartz.c
index 1011c9fb51..66c4a140c4 100644
--- a/gdk/quartz/gdkwindow-quartz.c
+++ b/gdk/quartz/gdkwindow-quartz.c
@@ -612,7 +612,7 @@ _gdk_quartz_window_gdk_xy_to_xy (gint gdk_x,
*ns_y = screen_quartz->orig_y - gdk_y;
if (ns_x)
- *ns_x = gdk_x - screen_quartz->orig_x;
+ *ns_x = gdk_x + screen_quartz->orig_x;
}
void
@@ -627,7 +627,7 @@ _gdk_quartz_window_xy_to_gdk_xy (gint ns_x,
*gdk_y = screen_quartz->orig_y - ns_y;
if (gdk_x)
- *gdk_x = ns_x + screen_quartz->orig_x;
+ *gdk_x = ns_x - screen_quartz->orig_x;
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]