aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2003-09-27 21:41:10 +0000
committerMax Horn2003-09-27 21:41:10 +0000
commit24d74274cf7a161e75adc452fb31e83b023b2e26 (patch)
treecc68bc39ecce6df5a68ca2bbd6934167dff43811
parente306de219267da2ac8c429e9bb57f14456816e35 (diff)
downloadscummvm-rg350-24d74274cf7a161e75adc452fb31e83b023b2e26.tar.gz
scummvm-rg350-24d74274cf7a161e75adc452fb31e83b023b2e26.tar.bz2
scummvm-rg350-24d74274cf7a161e75adc452fb31e83b023b2e26.zip
proposal for revised scaler keyboard shortcuts
svn-id: r10442
-rw-r--r--TODO18
-rw-r--r--backends/sdl/sdl-common.cpp2
2 files changed, 19 insertions, 1 deletions
diff --git a/TODO b/TODO
index 8185b510ac..5b1240472d 100644
--- a/TODO
+++ b/TODO
@@ -98,3 +98,21 @@ Descumm
* Rewrite code to use 2 passes; first pass builds an intermediate graph, the
second pass then tries to detect loops, break/continue statements etc.
+SDL backend
+===========
+* Maybe change the shortcuts? One idea (add ctrl-alt in all cases):
+ 1-3: select scale factor
+ 2-4: normal, advmame, hq filters (all available as 2x and 3x)
+ 5-9,0: the other scalers
+ Justification: We have so many scalers now, we are running out of keys
+ for them - and this way, we need a few less. Of course, the question remains
+ what happens if you press ctrl-alt-3 while 2xSai is scaler, what happens?
+ So maybe (again add ctrl-alt):
+ '+' / '-':
+ increase/decrease scale factor, cycling over the possible range.
+ So for a 2x-only scaler, it does nothing; for a scaler supporting
+ all scales from 1x to 4x, it works as usual (and pressing '+' in
+ 4x mode goes to 1x)
+ 1-9: switch between the "base" scalers: normal (point) scaler, advmame,
+ hq (high quality), 2xsai, super2xsai, supereagle, tv2x, dotmatrix, ...
+ \ No newline at end of file
diff --git a/backends/sdl/sdl-common.cpp b/backends/sdl/sdl-common.cpp
index ecfc114844..6f4aee9506 100644
--- a/backends/sdl/sdl-common.cpp
+++ b/backends/sdl/sdl-common.cpp
@@ -615,7 +615,7 @@ bool OSystem_SDL_Common::poll_event(Event *event) {
// Ctr-Alt-<key> will change the GFX mode
if (b == (KBD_CTRL|KBD_ALT)) {
- char keys[] = "123456789cd";
+ const char keys[] = "123456789cd";
char *ptr;
ptr = strchr(keys, ev.key.keysym.sym);