[Gridflow-cvs] [svn] commit: r4930 - /trunk/src/sdl.cxx

gridflow-cvs at artengine.ca gridflow-cvs at artengine.ca
Mon Jan 25 15:25:19 EST 2010


Author: matju
Date: Mon Jan 25 15:25:19 2010
New Revision: 4930

Log:
fix corruption happening when creating a 2nd window

Modified:
    trunk/src/sdl.cxx

Modified: trunk/src/sdl.cxx
==============================================================================
--- trunk/src/sdl.cxx (original)
+++ trunk/src/sdl.cxx Mon Jan 25 15:25:19 2010
@@ -131,9 +131,9 @@
 	\decl 0 hidecursor ();
 	\decl 0 title (string title);
 	\constructor (t_symbol *mode) {
-		dim=0;screen=0;
 		if (in_use) RAISE("only one FormatSDL object at a time; sorry");
 		in_use=true;
+		dim=0;screen=0;
 		if (SDL_Init(SDL_INIT_VIDEO)<0) RAISE("SDL_Init() error: %s",SDL_GetError());
 		atexit(SDL_Quit);
 		resize_window(320,240);



More information about the Gridflow-cvs mailing list