aboutsummaryrefslogtreecommitdiff
path: root/sdl.cpp
diff options
context:
space:
mode:
authorMax Horn2002-04-27 11:07:32 +0000
committerMax Horn2002-04-27 11:07:32 +0000
commit698e28eb6be8c40fb05981c1a00fe89bc6da7e3b (patch)
tree1793c78b80c5b45e691646248494433ca200f6f0 /sdl.cpp
parentc9ea27332cfdf02bb7852d85ba0bdbf14ecb470a (diff)
downloadscummvm-rg350-698e28eb6be8c40fb05981c1a00fe89bc6da7e3b.tar.gz
scummvm-rg350-698e28eb6be8c40fb05981c1a00fe89bc6da7e3b.tar.bz2
scummvm-rg350-698e28eb6be8c40fb05981c1a00fe89bc6da7e3b.zip
fixed scalers on systems which do not use 555 but 565 output surfaces
svn-id: r4106
Diffstat (limited to 'sdl.cpp')
-rw-r--r--sdl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/sdl.cpp b/sdl.cpp
index f568508041..f7435e4738 100644
--- a/sdl.cpp
+++ b/sdl.cpp
@@ -311,7 +311,7 @@ normal_mode:;
uint16 *tmp_screen = (uint16*)calloc(320*204 + 16,sizeof(uint16));
_mode_flags = DF_FORCE_FULL_ON_PALETTE | DF_WANT_RECT_OPTIM | DF_2xSAI | DF_SEPARATE_HWSCREEN | DF_UPDATE_EXPAND_1_PIXEL;
- Init_2xSaI(565);
+ Init_2xSaI(555);
sdl_screen = SDL_CreateRGBSurface(SDL_SWSURFACE, 320, 200, 8, 0, 0, 0, 0);
if (sdl_screen == NULL)
error("SDL_CreateRGBSurface(SDL_SWSURFACE, 320, 200, 8, 0, 0, 0, 0) failed");
@@ -324,7 +324,7 @@ normal_mode:;
/* Need some extra bytes around when using 2XSAI */
sdl_tmpscreen = SDL_CreateRGBSurfaceFrom(tmp_screen + TMP_SCREEN_OFFS, 320, 200, 16,
- 320*2, 0,0,0,0);
+ 320*2, 0x7C00,0x3E0,0x001F,0);
if (sdl_tmpscreen == NULL)
error("sdl_tmpscreen failed");