From ff99e19fe97465366ef0218a814f3d23fa86bb69 Mon Sep 17 00:00:00 2001 From: Richard Frith-MacDonald Date: Thu, 29 Nov 2007 11:34:41 +0000 Subject: [PATCH] Fixup coordinated of cursor hotpoint for MacOS-X compatibility. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@25631 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 6 ++++++ Source/x11/XGServerWindow.m | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 2e312cd..6f7e5e0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-11-29 Richard Frith-Macdonald + + * Source/x11/XGServerWindow.m: ([imagecursor::::::]) don't flip the + hot point coordinates ... NSCursor coordinates are already supposed + to be flipped. + 2007-11-29 Fred Kiefer * Headers/x11/XGGeneric.h: Add atoms for new window types. Add diff --git a/Source/x11/XGServerWindow.m b/Source/x11/XGServerWindow.m index f095104..dbddf11 100644 --- a/Source/x11/XGServerWindow.m +++ b/Source/x11/XGServerWindow.m @@ -4010,7 +4010,7 @@ xgps_cursor_image(Display *xdpy, Drawable draw, const unsigned char *data, fg = [self xColorFromColor: fg forScreen: defScreen]; cursor = XCreatePixmapCursor(dpy, source, mask, &fg, &bg, - (int)hotp.x, (int)(h - hotp.y)); + (int)hotp.x, (int)hotp.y); XFreePixmap(dpy, source); XFreePixmap(dpy, mask); if (cid)