forked from AuroraMiddleware/gtk
Reverse signs on gdk <-> ns x coordinate transforms.
Closes https://gitlab.gnome.org/GNOME/gtk/issues/1711
This commit is contained in:
parent
261f1dc395
commit
0524362721
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user