pmc/surface.cc
changeset 129 d82830a449a9
parent 77 49e0babccb23
--- a/pmc/surface.cc
+++ b/pmc/surface.cc
@@ -17,7 +17,9 @@
     depth = d;
 
     SDL_Init (SDL_INIT_VIDEO);
-    screen = SDL_SetVideoMode (width, height, depth, SDL_HWSURFACE);
+    screen = SDL_SetVideoMode (w, h, depth, SDL_HWSURFACE | SDL_FULLSCREEN);
+    width = screen->w;
+    height = screen->h;
     red = SDL_MapRGB (screen->format, 0xff, 0x00, 0x00);
     green = SDL_MapRGB (screen->format, 0x00, 0xff, 0x00);
     blue = SDL_MapRGB (screen->format, 0x00, 0x00, 0xff);