diff test/testwm2.c @ 1733:0b1070f2f94d SDL-1.3

Implemented gamma correction on Windows. Added general code to restore the video mode and gamma when windows lose focus.
author Sam Lantinga <slouken@libsdl.org>
date Sun, 09 Jul 2006 09:02:26 +0000
parents 98a3207ddde8
children
line wrap: on
line diff
--- a/test/testwm2.c	Sat Jul 08 20:55:39 2006 +0000
+++ b/test/testwm2.c	Sun Jul 09 09:02:26 2006 +0000
@@ -49,12 +49,6 @@
         }
     }
 
-    /* Set the desktop mode, we don't care what it is */
-    if (SDL_SetDisplayMode(NULL) < 0) {
-        fprintf(stderr, "Couldn't set display mode: %s\n", SDL_GetError());
-        quit(2);
-    }
-
     /* Create the windows */
     windows = (SDL_WindowID *) SDL_malloc(num_windows * sizeof(*windows));
     if (!windows) {