test/graywin.c
branchSDL-1.3
changeset 1724 6c63fc2bd986
parent 1668 4da1ee79c9af
     1.1 --- a/test/graywin.c	Thu Jul 06 05:53:32 2006 +0000
     1.2 +++ b/test/graywin.c	Thu Jul 06 07:17:11 2006 +0000
     1.3 @@ -228,8 +228,11 @@
     1.4              DrawBackground(screen);
     1.5              break;
     1.6          case SDL_VIDEORESIZE:
     1.7 -            screen = CreateScreen(event.resize.w, event.resize.h,
     1.8 -                                  screen->format->BitsPerPixel, videoflags);
     1.9 +            printf("Screen resized to %dx%d\n", event.resize.w,
    1.10 +                   event.resize.h);
    1.11 +            screen =
    1.12 +                CreateScreen(event.resize.w, event.resize.h,
    1.13 +                             screen->format->BitsPerPixel, videoflags);
    1.14              if (screen == NULL) {
    1.15                  fprintf(stderr, "Couldn't resize video mode\n");
    1.16                  done = 1;