Commit edebdeb47f1f7c1cbed1a6526f08ad7200da53b6

Ryan C. Gordon 2019-03-17T12:45:19

testgesture: Make the background gray. This is so you can see it on systems that have a minimal window manager and a black background.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/test/testgesture.c b/test/testgesture.c
index 397239f..90e7212 100644
--- a/test/testgesture.c
+++ b/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) {