diff options
author | Jonathan Gray | 2003-01-15 02:11:37 +0000 |
---|---|---|
committer | Jonathan Gray | 2003-01-15 02:11:37 +0000 |
commit | c08d736d1d4198233b3e6920d904114bae95611e (patch) | |
tree | b02839e86b8e6e99e5920dbf99c8a9e039e3112c /backends | |
parent | bd1b0d53ef30d437a1ebaca1397869245d30dc0e (diff) | |
download | scummvm-rg350-c08d736d1d4198233b3e6920d904114bae95611e.tar.gz scummvm-rg350-c08d736d1d4198233b3e6920d904114bae95611e.tar.bz2 scummvm-rg350-c08d736d1d4198233b3e6920d904114bae95611e.zip |
add new tv scanlines graphics scaler from Gregory Montoir, use -g tv2x to try it
svn-id: r6462
Diffstat (limited to 'backends')
-rw-r--r-- | backends/sdl/sdl-common.cpp | 4 | ||||
-rw-r--r-- | backends/sdl/sdl.cpp | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/backends/sdl/sdl-common.cpp b/backends/sdl/sdl-common.cpp index 6a1e1da6d2..a4cb7ba341 100644 --- a/backends/sdl/sdl-common.cpp +++ b/backends/sdl/sdl-common.cpp @@ -481,9 +481,9 @@ bool OSystem_SDL_Common::poll_event(Event *event) { quit(); break; } - // Ctr-Alt-1 till Ctrl-Alt-7 will change the GFX mode + // Ctr-Alt-1 till Ctrl-Alt-8 will change the GFX mode if (b == (KBD_CTRL|KBD_ALT) && - (ev.key.keysym.sym>='1') && (ev.key.keysym.sym<='7')) { + (ev.key.keysym.sym>='1') && (ev.key.keysym.sym<='8')) { Property prop; prop.gfx_mode = ev.key.keysym.sym - '1'; property(PROP_SET_GFX_MODE, &prop); diff --git a/backends/sdl/sdl.cpp b/backends/sdl/sdl.cpp index eaa7a03642..19cde5f514 100644 --- a/backends/sdl/sdl.cpp +++ b/backends/sdl/sdl.cpp @@ -99,6 +99,10 @@ void OSystem_SDL::load_gfx_mode() { _scaleFactor = 2; _scaler_proc = AdvMame2x; break; + case GFX_TV2X: + _scaleFactor = 2; + _scaler_proc = TV2x; + break; case GFX_DOUBLESIZE: _scaleFactor = 2; @@ -341,7 +345,7 @@ uint32 OSystem_SDL::property(int param, Property *value) { #endif return 1; } else if (param == PROP_SET_GFX_MODE) { - if (value->gfx_mode >= 7) + if (value->gfx_mode >= 8) return 0; _mode = value->gfx_mode; |