diff options
author | Filippos Karapetis | 2009-05-10 10:27:45 +0000 |
---|---|---|
committer | Filippos Karapetis | 2009-05-10 10:27:45 +0000 |
commit | acd5a87922eb7a5268fa673f659be30d2eb39af6 (patch) | |
tree | 06ca6a353a606b392f9fa3038dd16fd0c9ffffe8 /engines/sci/engine/game.cpp | |
parent | ceee278def65e1a8641539602db4d7285d7a53fa (diff) | |
download | scummvm-rg350-acd5a87922eb7a5268fa673f659be30d2eb39af6.tar.gz scummvm-rg350-acd5a87922eb7a5268fa673f659be30d2eb39af6.tar.bz2 scummvm-rg350-acd5a87922eb7a5268fa673f659be30d2eb39af6.zip |
Moved the code which retrieves the current room number in a separate function and merged _sci1_alloc_system_colors inside _reset_graphics_input
svn-id: r40412
Diffstat (limited to 'engines/sci/engine/game.cpp')
-rw-r--r-- | engines/sci/engine/game.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/engines/sci/engine/game.cpp b/engines/sci/engine/game.cpp index 23e6d5eb64..1ebb68f81e 100644 --- a/engines/sci/engine/game.cpp +++ b/engines/sci/engine/game.cpp @@ -68,11 +68,6 @@ static int _init_vocabulary(EngineState *s) { // initialize vocabulary and relat extern int _allocd_rules; -static void _sci1_alloc_system_colors(EngineState *s) { - gfx_color_t black = { PaletteEntry(0, 0, 0), 0, 0, 0, GFX_MASK_VISUAL }; - gfxop_set_system_color(s->gfx_state, 0, &black); -} - int _reset_graphics_input(EngineState *s) { Resource *resource; int font_nr; @@ -90,7 +85,9 @@ int _reset_graphics_input(EngineState *s) { gfxop_set_system_color(s->gfx_state, i, &(s->ega_colors[i])); } } else { - _sci1_alloc_system_colors(s); + // Allocate SCI1 system colors + gfx_color_t black = { PaletteEntry(0, 0, 0), 0, 0, 0, GFX_MASK_VISUAL }; + gfxop_set_system_color(s->gfx_state, 0, &black); // Check for Amiga palette file. Common::File file; |