Mercurial > sdl-ios-xcode
comparison test/graywin.c @ 1724:6c63fc2bd986 SDL-1.3
Proof of concept done - Win32 GDI implementation mostly complete.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 06 Jul 2006 07:17:11 +0000 |
parents | 4da1ee79c9af |
children |
comparison
equal
deleted
inserted
replaced
1723:4bdbb9b2bd0a | 1724:6c63fc2bd986 |
---|---|
226 break; | 226 break; |
227 case SDL_VIDEOEXPOSE: | 227 case SDL_VIDEOEXPOSE: |
228 DrawBackground(screen); | 228 DrawBackground(screen); |
229 break; | 229 break; |
230 case SDL_VIDEORESIZE: | 230 case SDL_VIDEORESIZE: |
231 screen = CreateScreen(event.resize.w, event.resize.h, | 231 printf("Screen resized to %dx%d\n", event.resize.w, |
232 screen->format->BitsPerPixel, videoflags); | 232 event.resize.h); |
233 screen = | |
234 CreateScreen(event.resize.w, event.resize.h, | |
235 screen->format->BitsPerPixel, videoflags); | |
233 if (screen == NULL) { | 236 if (screen == NULL) { |
234 fprintf(stderr, "Couldn't resize video mode\n"); | 237 fprintf(stderr, "Couldn't resize video mode\n"); |
235 done = 1; | 238 done = 1; |
236 } | 239 } |
237 DrawBackground(screen); | 240 DrawBackground(screen); |