Reverse signs on gdk <-> ns x coordinate transforms.

Closes https://gitlab.gnome.org/GNOME/gtk/issues/1711
This commit is contained in:
John Ralls 2019-03-08 15:01:11 -08:00
parent 261f1dc395
commit 0524362721

View File

@ -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