[Gridflow-cvs] [svn] commit: r3755 - /trunk/format/sdl.c

gridflow-cvs at artengine.ca gridflow-cvs at artengine.ca
Mon Jun 2 15:37:25 EDT 2008


Author: matju
Date: Mon Jun  2 15:37:25 2008
New Revision: 3755

Log:
setcursor, hidecursor

Modified:
    trunk/format/sdl.c

Modified: trunk/format/sdl.c
==============================================================================
--- trunk/format/sdl.c (original)
+++ trunk/format/sdl.c Mon Jun  2 15:37:25 2008
@@ -86,6 +86,8 @@
 	t_clock *clock;
 	void resize_window (int sx, int sy);
 	void call ();
+	\decl 0 setcursor (int shape);
+	\decl 0 hidecursor ();
 	\constructor (t_symbol *mode) {
 		dim=0;screen=0;
 		if (in_use) RAISE("only one FormatSDL object at a time; sorry");
@@ -150,6 +152,9 @@
 	SDL_UpdateRect(screen,0,0,in->dim->get(1),in->dim->get(0));
 } GRID_END
 
+\def 0 setcursor  (int shape) {SDL_ShowCursor(SDL_ENABLE);}
+\def 0 hidecursor ()          {SDL_ShowCursor(SDL_DISABLE);}
+
 \end class FormatSDL {install_format("#io.sdl",2,"");}
 void startup_sdl () {
 	\startall



More information about the Gridflow-cvs mailing list