Mercurial > sdl-ios-xcode
comparison 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 |
comparison
equal
deleted
inserted
replaced
1732:fd65f12b6de6 | 1733:0b1070f2f94d |
---|---|
47 fprintf(stderr, "Usage: %s [-width] [-height]\n", argv[0]); | 47 fprintf(stderr, "Usage: %s [-width] [-height]\n", argv[0]); |
48 quit(1); | 48 quit(1); |
49 } | 49 } |
50 } | 50 } |
51 | 51 |
52 /* Set the desktop mode, we don't care what it is */ | |
53 if (SDL_SetDisplayMode(NULL) < 0) { | |
54 fprintf(stderr, "Couldn't set display mode: %s\n", SDL_GetError()); | |
55 quit(2); | |
56 } | |
57 | |
58 /* Create the windows */ | 52 /* Create the windows */ |
59 windows = (SDL_WindowID *) SDL_malloc(num_windows * sizeof(*windows)); | 53 windows = (SDL_WindowID *) SDL_malloc(num_windows * sizeof(*windows)); |
60 if (!windows) { | 54 if (!windows) { |
61 fprintf(stderr, "Out of memory!\n"); | 55 fprintf(stderr, "Out of memory!\n"); |
62 quit(2); | 56 quit(2); |