[Gridflow-cvs] [svn] commit: r5382 - /trunk/src/x11.cxx

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Wed Apr 7 21:47:15 EDT 2010


Author: matju
Date: Wed Apr  7 21:47:14 2010
New Revision: 5382

Log:
the improved cursor as stated in ChangeLog already

Modified:
    trunk/src/x11.cxx

Modified: trunk/src/x11.cxx
==============================================================================
--- trunk/src/x11.cxx (original)
+++ trunk/src/x11.cxx Wed Apr  7 21:47:14 2010
@@ -627,7 +627,8 @@
 \def 0 out_size (int sy, int sx) { resize_window(sx,sy); }
 
 \def 0 setcursor (int shape) {
-	shape = 2*(shape&63);
+	if (shape<0 || shape>=77) RAISE("unknown shape number (should be at least 0 but less than 77)");
+	shape = 2*shape;
 	Cursor c = XCreateFontCursor(display,shape);
 	XDefineCursor(display,window,c);
 	XFlush(display);



More information about the Gridflow-cvs mailing list