]> Shamusworld >> Repos - virtualjaguar/commitdiff
Changed remaining 16BPP modes to 32BPP
authorShamus Hammons <jlhamm@acm.org>
Fri, 4 Feb 2005 06:30:03 +0000 (06:30 +0000)
committerShamus Hammons <jlhamm@acm.org>
Fri, 4 Feb 2005 06:30:03 +0000 (06:30 +0000)
src/video.cpp

index 45fd04c2af8f73e121ef49590f471f8c5ca45c0c..65a9fdde3f41923a33e74dcc4d7b92d5fa28d938 100644 (file)
@@ -245,7 +245,7 @@ void ResizeScreen(uint32 width, uint32 height)
        }
        else
        {
-               mainSurface = SDL_SetVideoMode(width, height, 16, mainSurfaceFlags);
+               mainSurface = SDL_SetVideoMode(width, height, 32, mainSurfaceFlags);
 
                if (mainSurface == NULL)
                {
@@ -261,10 +261,10 @@ void ResizeScreen(uint32 width, uint32 height)
 //
 // Return the screen's pitch
 //
-uint32 GetSDLScreenPitch(void)
+/*uint32 GetSDLScreenPitch(void)
 {
        return surface->pitch;
-}
+}*/
 
 //
 // Return the screen's width in pixels
@@ -289,7 +289,7 @@ void ToggleFullscreen(void)
        if (vjs.fullscreen)
                mainSurfaceFlags |= SDL_FULLSCREEN;
 
-       mainSurface = SDL_SetVideoMode(tom_width, tom_height, 16, mainSurfaceFlags);
+       mainSurface = SDL_SetVideoMode(tom_width, tom_height, 32, mainSurfaceFlags);
 
        if (mainSurface == NULL)
        {