Maybe actually patched to compile this time?
authorRyan C. Gordon <icculus@icculus.org>
Wed, 24 Dec 2014 22:22:35 -0500
changeset 9289 5f857c00d25d
parent 9288 573ebcb470a3
child 9290 fe975b2313fa
Maybe actually patched to compile this time?
test/testgesture.c
--- a/test/testgesture.c	Wed Dec 24 13:23:48 2014 -0500
+++ b/test/testgesture.c	Wed Dec 24 22:22:35 2014 -0500
@@ -39,6 +39,7 @@
 static int colors[7] = {0xFF,0xFF00,0xFF0000,0xFFFF00,0x00FFFF,0xFF00FF,0xFFFFFF};
 
 SDL_Surface *screen;
+SDL_Window *window;
 SDL_bool quitting = SDL_FALSE;
 
 typedef struct {
@@ -162,9 +163,6 @@
                               SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED,
                               width, height, SDL_WINDOW_RESIZABLE);
   }
-  if (!window) {
-    return NULL;
-  }
   return window;
 }
 
@@ -287,6 +285,12 @@
       return 1;
   }
 
+  if (!(window = initWindow(NULL,WIDTH,HEIGHT)))
+  {
+      SDL_Quit();
+      return 1;
+  }
+
 #ifdef __EMSCRIPTEN__
     emscripten_set_main_loop(loop, 0, 1);
 #else