Explorar o código

testgesture: Make the background gray.

This is so you can see it on systems that have a minimal window manager and
a black background.
Ryan C. Gordon %!s(int64=6) %!d(string=hai) anos
pai
achega
edebdeb47f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      test/testgesture.c

+ 1 - 1
test/testgesture.c

@@ -134,7 +134,7 @@ DrawScreen(SDL_Window *window)
         return;
     }
 
-    SDL_FillRect(screen, NULL, 0);
+    SDL_FillRect(screen, NULL, SDL_MapRGB(screen->format, 75, 75, 75));
 
     /* draw Touch History */
     for (i = eventWrite; i < eventWrite + EVENT_BUF_SIZE; ++i) {