scummvm/engines/kyra
Johannes Schickel cc1ae7b190 KYRA: Fix crahes in Kyra 1-3 and LoL when EGA/CGA graphics mode is selected.
This is a regression from 86a817beb5.

Formerly Kyra always queried the render_mode and initializes its Screen
functionality accordingly, even when the game actually only supported VGA.
While in the "Edit game..." options only VGA was selectable, the global options
still allowed for example EGA to be selected and thus messing up the internal
state. I only check the render_mode setting for EoB 1 and 2 now, which are
the only games which support the setting inside Screen.
2012-04-24 01:11:53 +02:00
..
animator_hof.cpp KYRA: Cleanup v2 item animation a little bit. 2012-01-08 23:00:41 +01:00
animator_lok.cpp KYRA: Some formatting fixes. 2011-12-26 21:34:22 +01:00
animator_lok.h JANITORIAL: Remove trailing empty lines. 2011-08-07 13:53:33 +02:00
animator_mr.cpp KYRA: Cleanup v2 item animation a little bit. 2012-01-08 23:00:41 +01:00
animator_tim.cpp GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02:00
animator_v2.cpp KYRA: Some formatting fixes. 2011-12-27 02:37:25 +01:00
chargen.cpp KYRA: (EOB) - cleanup CGA/EGA code a bit 2012-02-24 18:09:37 +01:00
darkmoon.cpp KYRA: (EOB) - implement EGA mode (hi res dithering) for EOB II 2012-02-21 21:48:46 +01:00
darkmoon.h KYRA: (EOB) - start work on CGA and EGA graphics modes 2012-02-21 21:48:39 +01:00
debugger.cpp KYRA: (EOB) - change behavior of safe game file importing code 2012-01-16 16:52:13 +01:00
debugger.h KYRA: (EOB) - add support for original save game files 2012-01-15 13:36:50 +01:00
detection_tables.h KYRA: Add per-game GUI option support. 2012-03-19 21:04:29 +01:00
detection.cpp KYRA: Fix game option comments 2012-03-25 17:05:23 +03:00
eob.cpp KYRA: (EOB) - implement EGA mode (hi res dithering) for EOB II 2012-02-21 21:48:46 +01:00
eob.h KYRA: (EOB) - complete CGA graphics mode implementation 2012-02-21 21:48:41 +01:00
eobcommon.cpp JANITORIAL: Replace (x ? false : true) by !(x). 2012-03-13 15:43:36 +01:00
eobcommon.h KYRA: (EOB) - cleanup CGA/EGA code a bit 2012-02-24 18:09:37 +01:00
gui_eob.cpp JANITORIAL: Simply use *x instead of *x.get() on smart pointers. 2012-03-13 15:43:59 +01:00
gui_eob.h KYRA: (EOB) - implement EGA mode (hi res dithering) for EOB II 2012-02-21 21:48:46 +01:00
gui_hof.cpp KYRA: (EOB) - Start implementing EOB1 party transfer (not working yet) 2011-12-26 16:18:17 +01:00
gui_hof.h JANITORIAL: Remove trailing empty lines. 2011-08-07 13:53:33 +02:00
gui_lok.cpp JANITORIAL: Simply use *x instead of *x.get() on smart pointers. 2012-03-13 15:43:59 +01:00
gui_lok.h KYRA: (EOB) - some refactoring 2011-12-26 16:18:12 +01:00
gui_lol.cpp JANITORIAL: Simply use *x instead of *x.get() on smart pointers. 2012-03-13 15:43:59 +01:00
gui_lol.h KYRA: (EOB) - some refactoring 2011-12-26 16:18:12 +01:00
gui_mr.cpp KYRA: (EOB) - Start implementing EOB1 party transfer (not working yet) 2011-12-26 16:18:17 +01:00
gui_mr.h JANITORIAL: Remove trailing empty lines. 2011-08-07 13:53:33 +02:00
gui_rpg.cpp KYRA: Some formatting fixes. 2012-03-05 20:08:59 +01:00
gui_v1.cpp KYRA: Some formatting fixes. 2011-12-26 21:34:22 +01:00
gui_v1.h KYRA: whitespace cleanup 2011-12-26 16:18:17 +01:00
gui_v2.cpp JANITORIAL: Simply use *x instead of *x.get() on smart pointers. 2012-03-13 15:43:59 +01:00
gui_v2.h KYRA: (EOB) - some refactoring 2011-12-26 16:18:12 +01:00
gui.cpp COMMON: Move isFoo functions to namespace Common, add doxygen comments 2012-02-20 16:18:27 +01:00
gui.h KYRA: (EOB) - Start implementing EOB1 party transfer (not working yet) 2011-12-26 16:18:17 +01:00
item.h JANITORIAL: Remove trailing empty lines. 2011-08-07 13:53:33 +02:00
items_eob.cpp KYRA: (EOB) - implement EGA graphics mode for EOB1 2012-02-21 21:48:43 +01:00
items_hof.cpp JANITORIAL: Remove trailing empty lines. 2011-08-07 13:53:33 +02:00
items_lok.cpp KYRA: Some formatting fixes. 2011-12-26 21:34:22 +01:00
items_lol.cpp KYRA: Slight formatting fixes. 2011-12-31 05:11:33 +01:00
items_mr.cpp JANITORIAL: Remove trailing empty lines. 2011-08-07 13:53:33 +02:00
items_v2.cpp JANITORIAL: Remove trailing empty lines. 2011-08-07 13:53:33 +02:00
kyra_hof.cpp KYRA: (EOB) - cleanup CGA/EGA code a bit 2012-02-24 18:09:37 +01:00
kyra_hof.h JANITORIAL: Fix whitespace in pointer template arg 2012-02-15 10:07:08 -06:00
kyra_lok.cpp KYRA: Remove obsolete registering of 16_color config file entry. 2012-02-25 19:03:38 +01:00
kyra_lok.h KYRA: (EOB) - some refactoring 2011-12-26 16:18:12 +01:00
kyra_mr.cpp KYRA: (EOB) - cleanup CGA/EGA code a bit 2012-02-24 18:09:37 +01:00
kyra_mr.h JANITORIAL: Fix whitespace in pointer template arg 2012-02-15 10:07:08 -06:00
kyra_rpg.cpp KYRA: Some formatting fixes. 2012-03-05 20:08:59 +01:00
kyra_rpg.h KYRA: (EOB) - implement EGA mode (hi res dithering) for EOB II 2012-02-21 21:48:46 +01:00
kyra_v1.cpp KYRA: (EOB) - cleanup CGA/EGA code a bit 2012-02-24 18:09:37 +01:00
kyra_v1.h KYRA: Some formatting fixes. 2012-03-05 20:08:59 +01:00
kyra_v2.cpp KYRA: Some formatting fixes. 2011-12-27 02:37:25 +01:00
kyra_v2.h JANITORIAL: Fix whitespace in pointer template arg 2012-02-15 10:07:08 -06:00
lol.cpp KYRA: (EOB) - cleanup CGA/EGA code a bit 2012-02-24 18:09:37 +01:00
lol.h JANITORIAL: Fix whitespace in pointer template arg 2012-02-15 10:07:08 -06:00
magic_eob.cpp KYRA: (EOB) - cleanup CGA/EGA code a bit 2012-02-24 18:09:37 +01:00
module.mk KYRA: Merge Screen_Rpg with Screen (for now). 2011-12-26 19:32:05 +01:00
resource_intern.cpp KYRA: Some formatting fixes. 2011-12-26 21:34:22 +01:00
resource_intern.h COMMON: Make more members of Archive constant. 2011-12-13 17:55:57 +01:00
resource.cpp KYRA: Some formatting fixes. 2011-12-26 21:34:22 +01:00
resource.h KYRA: (EOB) - fix EOB1 door clipping 2012-02-21 21:48:42 +01:00
saveload_eob.cpp KYRA: (EOB) - cleanup CGA/EGA code a bit 2012-02-24 18:09:37 +01:00
saveload_hof.cpp JANITORIAL: Remove trailing empty lines. 2011-08-07 13:53:33 +02:00
saveload_lok.cpp KYRA: Some formatting fixes. 2011-12-26 21:34:22 +01:00
saveload_lol.cpp KYRA: Slight formatting fixes. 2011-12-31 05:11:33 +01:00
saveload_mr.cpp JANITORIAL: Remove trailing empty lines. 2011-08-07 13:53:33 +02:00
saveload_rpg.cpp KYRA: Some formatting fixes. 2012-03-05 20:08:59 +01:00
saveload.cpp KYRA: Silence some valgrind warnings by doing a slight sanity check on savefile size. 2011-12-28 01:40:29 +01:00
scene_eob.cpp KYRA: (EOB) - implement EGA mode (hi res dithering) for EOB II 2012-02-21 21:48:46 +01:00
scene_hof.cpp COMMON: Replace x + ARRAYSIZE(x) by the simpler ARRAYEND(x). 2011-08-07 15:19:08 +02:00
scene_lok.cpp KYRA: Some formatting fixes. 2011-12-26 21:34:22 +01:00
scene_lol.cpp KYRA: (EOB) - fix EOB1 door clipping 2012-02-21 21:48:42 +01:00
scene_mr.cpp COMMON: Rename Common::set_to to Common::fill. 2011-11-16 18:06:30 +01:00
scene_rpg.cpp KYRA: Some formatting fixes. 2012-03-05 20:08:59 +01:00
scene_v1.cpp KYRA: Some formatting fixes. 2011-12-26 21:34:22 +01:00
scene_v2.cpp KYRA: Some formatting fixes. 2011-12-27 02:37:25 +01:00
screen_eob.cpp KYRA: Some formatting fixes. 2012-03-05 20:08:59 +01:00
screen_eob.h KYRA: (EOB) - fix save file thumbnail generation in CGA/EGA mode 2012-02-24 18:09:39 +01:00
screen_hof.cpp KYRA: Merge Screen_Rpg with Screen (for now). 2011-12-26 19:32:05 +01:00
screen_hof.h KYRA: Merge Screen_Rpg with Screen (for now). 2011-12-26 19:32:05 +01:00
screen_lok.cpp KYRA: Some formatting fixes. 2011-12-26 21:34:22 +01:00
screen_lok.h KYRA: Merge Screen_Rpg with Screen (for now). 2011-12-26 19:32:05 +01:00
screen_lol.cpp KYRA: Slight formatting fixes. 2011-12-31 05:11:33 +01:00
screen_lol.h KYRA: Merge Screen_Rpg with Screen (for now). 2011-12-26 19:32:05 +01:00
screen_mr.cpp KYRA: Merge Screen_Rpg with Screen (for now). 2011-12-26 19:32:05 +01:00
screen_mr.h KYRA: Merge Screen_Rpg with Screen (for now). 2011-12-26 19:32:05 +01:00
screen_v2.cpp JANITORIAL: Replace (x ? false : true) by !(x). 2012-03-13 15:43:36 +01:00
screen_v2.h KYRA: Merge Screen_Rpg with Screen (for now). 2011-12-26 19:32:05 +01:00
screen.cpp KYRA: Fix crahes in Kyra 1-3 and LoL when EGA/CGA graphics mode is selected. 2012-04-24 01:11:53 +02:00
screen.h COMMON: Move RenderMode and GUIOptions functionality into separate files 2012-02-26 15:19:31 +01:00
script_eob.cpp KYRA: (EOB) - add support for original save game files 2012-01-15 13:36:50 +01:00
script_eob.h JANITORIAL: Fix whitespace in pointer template arg 2012-02-15 10:07:08 -06:00
script_hof.cpp JANITORIAL: Fix whitespace in pointer template arg 2012-02-15 10:07:08 -06:00
script_lok.cpp KYRA: Fix for bug #3474339 "KYRA1CD: Ingame animation missing". 2012-01-16 17:06:28 +01:00
script_lol.cpp KYRA: Slight formatting fixes. 2011-12-31 05:11:33 +01:00
script_mr.cpp JANITORIAL: Fix whitespace in pointer template arg 2012-02-15 10:07:08 -06:00
script_tim.cpp JANITORIAL: Fix whitespace in pointer template arg 2012-02-15 10:07:08 -06:00
script_tim.h JANITORIAL: Fix whitespace in pointer template arg 2012-02-15 10:07:08 -06:00
script_v1.cpp KYRA: Some formatting fixes. 2011-12-26 21:34:22 +01:00
script_v2.cpp KYRA: Some formatting fixes. 2011-12-27 02:37:25 +01:00
script.cpp JANITORIAL: Fix whitespace in pointer template arg 2012-02-15 10:07:08 -06:00
script.h JANITORIAL: Fix whitespace in pointer template arg 2012-02-15 10:07:08 -06:00
seqplayer.cpp KYRA: Some formatting fixes. 2011-12-26 21:34:22 +01:00
seqplayer.h JANITORIAL: Remove trailing empty lines. 2011-08-07 13:53:33 +02:00
sequences_darkmoon.cpp KYRA: (EOB) - start work on CGA and EGA graphics modes 2012-02-21 21:48:39 +01:00
sequences_eob.cpp KYRA: (EOB) - implement EGA graphics mode for EOB1 2012-02-21 21:48:43 +01:00
sequences_hof.cpp JANITORIAL: Replace (x ? false : true) by !(x). 2012-03-13 15:43:36 +01:00
sequences_lok.cpp KYRA: Silence const away cast warning by using non-const versions of strpbrk and strchr. 2012-04-05 00:40:30 +02:00
sequences_lol.cpp KYRA: Slight formatting fixes. 2011-12-31 05:11:33 +01:00
sequences_mr.cpp KYRA: Made some more static data const. 2011-09-08 00:33:10 +02:00
sequences_v2.cpp JANITORIAL: Remove trailing empty lines. 2011-08-07 13:53:33 +02:00
sound_adlib.cpp KYRA: (EOB) - add basic distinction between music and sound effects 2012-01-06 14:45:38 +01:00
sound_adlib.h KYRA: (AdLib Driver) - allow sound trigger query 2011-12-26 16:18:09 +01:00
sound_amiga.cpp KYRA: (AdLib Driver) - implement sound effects volume 2011-12-26 16:18:09 +01:00
sound_digital.cpp JANITORIAL: Remove trailing empty lines. 2011-08-07 13:53:33 +02:00
sound_intern.h KYRA: (AdLib Driver) - implement sound effects volume 2011-12-26 16:18:09 +01:00
sound_lok.cpp KYRA: Get rid of most snprintf usages. 2011-06-09 19:10:54 +02:00
sound_lol.cpp KYRA: (EOB/LOL) - cleanup common code 2011-12-26 16:18:16 +01:00
sound_midi.cpp KYRA: (AdLib Driver) - implement sound effects volume 2011-12-26 16:18:09 +01:00
sound_pcspk.cpp JANITORIAL: Remove trailing empty lines. 2011-08-07 13:53:33 +02:00
sound_towns.cpp KYRA: (EOB) - replace snprintf/sprintf 2011-12-26 16:18:10 +01:00
sound.cpp KYRA: (EOB) - initial code base commit 2011-12-26 16:18:10 +01:00
sound.h KYRA: (AdLib Driver) - allow sound trigger query 2011-12-26 16:18:09 +01:00
sprites_eob.cpp KYRA: (EOB) - fix minor sprite drawing glitch in EOB1 2012-02-21 21:48:45 +01:00
sprites_lol.cpp JANITORIAL: Replace (x ? false : true) by !(x). 2012-03-13 15:43:36 +01:00
sprites_rpg.cpp KYRA: (EOB/LOL) - cleanup common code 2011-12-26 16:18:16 +01:00
sprites.cpp JANITORIAL: Remove trailing empty lines. 2011-08-07 13:53:33 +02:00
sprites.h JANITORIAL: Remove trailing empty lines. 2011-08-07 13:53:33 +02:00
staticres_eob.cpp KYRA: (EOB) - complete CGA graphics mode implementation 2012-02-21 21:48:41 +01:00
staticres_lol.cpp KYRA: Slight formatting fixes. 2011-12-31 05:11:33 +01:00
staticres_rpg.cpp KYRA: (EOB) - fix EOB1 door clipping 2012-02-21 21:48:42 +01:00
staticres.cpp KYRA: (EOB) - fix EOB1 door clipping 2012-02-21 21:48:42 +01:00
text_hof.cpp KYRA: Made some more static data const. 2011-09-08 00:33:10 +02:00
text_hof.h JANITORIAL: Remove trailing empty lines. 2011-08-07 13:53:33 +02:00
text_lok.cpp KYRA: Some formatting fixes. 2011-12-26 21:34:22 +01:00
text_lol.cpp KYRA: Merge Screen_Rpg with Screen (for now). 2011-12-26 19:32:05 +01:00
text_lol.h KYRA: Merge Screen_Rpg with Screen (for now). 2011-12-26 19:32:05 +01:00
text_mr.cpp KYRA: Made some more static data const. 2011-09-08 00:33:10 +02:00
text_mr.h GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02:00
text_rpg.cpp KYRA: Replace debug leftover for unimplemented displayText functions with a warning. 2012-03-05 20:23:01 +01:00
text_rpg.h KYRA: (EOB) - fix 2 gcc (-Woverloaded-virtual) warnings 2011-12-28 00:01:26 +01:00
text.cpp GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02:00
text.h JANITORIAL: Remove trailing empty lines. 2011-08-07 13:53:33 +02:00
timer_eob.cpp JANITORIAL: Replace (x ? false : true) by !(x). 2012-03-13 15:43:36 +01:00
timer_hof.cpp GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02:00
timer_lok.cpp KYRA: Some formatting fixes. 2011-12-26 21:34:22 +01:00
timer_lol.cpp KYRA: Slight formatting fixes. 2011-12-31 05:11:33 +01:00
timer_mr.cpp GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02:00
timer_rpg.cpp KYRA: (EOB/LOL) - cleanup common code 2011-12-26 16:18:16 +01:00
timer.cpp KYRA: (EOB) - fix some bugs 2011-12-26 16:18:14 +01:00
timer.h KYRA: (EOB) - fix various bugs and implement some spells 2011-12-26 16:18:13 +01:00
util.cpp JANITORIAL: Remove trailing empty lines. 2011-08-07 13:53:33 +02:00
util.h JANITORIAL: Remove trailing empty lines. 2011-08-07 13:53:33 +02:00
vqa.cpp JANITORIAL: Replace (x ? false : true) by !(x). 2012-03-13 15:43:36 +01:00
vqa.h GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02:00
wsamovie.cpp KYRA: Some formatting fixes. 2011-12-26 21:34:22 +01:00
wsamovie.h JANITORIAL: Remove trailing empty lines. 2011-08-07 13:53:33 +02:00