aboutsummaryrefslogtreecommitdiff
path: root/sdl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sdl.cpp')
-rw-r--r--sdl.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/sdl.cpp b/sdl.cpp
index 51dcdf6afc..6f786bb18d 100644
--- a/sdl.cpp
+++ b/sdl.cpp
@@ -322,7 +322,10 @@ normal_mode:;
error("sdl_hwscreen failed");
/* Need some extra bytes around when using 2XSAI */
- Init_2xSaI(555);
+ if (sdl_hwscreen->format->Rmask == 0x7C00) // HACK HACK HACK
+ Init_2xSaI(555);
+ else
+ Init_2xSaI(565);
sdl_tmpscreen = SDL_CreateRGBSurfaceFrom(tmp_screen + TMP_SCREEN_OFFS,
320, 200, 16, 320*2,
sdl_hwscreen->format->Rmask,