Patch #735294: AdvMame3x scaler

svn-id: r7409
This commit is contained in:
Max Horn 2003-05-09 22:44:16 +00:00
parent 54a9ad3204
commit 37724d9297
7 changed files with 64 additions and 12 deletions

View file

@ -544,13 +544,19 @@ bool OSystem_SDL_Common::poll_event(Event *event) {
break;
}
#endif
// Ctr-Alt-1 till Ctrl-Alt-9 will change the GFX mode
if (b == (KBD_CTRL|KBD_ALT) &&
(ev.key.keysym.sym>='1') && (ev.key.keysym.sym<='9')) {
Property prop;
prop.gfx_mode = ev.key.keysym.sym - '1';
property(PROP_SET_GFX_MODE, &prop);
break;
// Ctr-Alt-<key> will change the GFX mode
if (b == (KBD_CTRL|KBD_ALT)) {
char keys[] = "1234567890";
char *ptr;
ptr = strchr(keys, ev.key.keysym.sym);
if (ptr != NULL) {
Property prop;
prop.gfx_mode = ptr - keys;
property(PROP_SET_GFX_MODE, &prop);
break;
}
}
#ifdef QTOPIA