aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/game.cpp
diff options
context:
space:
mode:
authorGreg Frieger2009-03-03 14:27:49 +0000
committerGreg Frieger2009-03-03 14:27:49 +0000
commitcbb6f919676bd1a44d91bf672487f11973094e97 (patch)
tree885db6744ae722cf256e5048b5d660ce2dba9d05 /engines/sci/engine/game.cpp
parenteb610d66bdff66a6a768ab9fc7409a17959b17ab (diff)
downloadscummvm-rg350-cbb6f919676bd1a44d91bf672487f11973094e97.tar.gz
scummvm-rg350-cbb6f919676bd1a44d91bf672487f11973094e97.tar.bz2
scummvm-rg350-cbb6f919676bd1a44d91bf672487f11973094e97.zip
SCI1: Improved color mapping when drawing line/box/text. Text with transparent background now displays correctly.
svn-id: r39089
Diffstat (limited to 'engines/sci/engine/game.cpp')
-rw-r--r--engines/sci/engine/game.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/sci/engine/game.cpp b/engines/sci/engine/game.cpp
index 16534dc910..f7e927f5a9 100644
--- a/engines/sci/engine/game.cpp
+++ b/engines/sci/engine/game.cpp
@@ -121,7 +121,7 @@ static void _sci1_alloc_system_colors(EngineState *s) {
int _reset_graphics_input(EngineState *s) {
Resource *resource;
int font_nr;
- gfx_color_t transparent;
+ gfx_color_t transparent = { { -1, 0, 0, 0 }, 0, -1, -1, 0 };
sciprintf("Initializing graphics\n");
if (s->resmgr->_sciVersion <= SCI_VERSION_01) {
@@ -157,7 +157,6 @@ int _reset_graphics_input(EngineState *s) {
}
}
}
- transparent.mask = 0;
gfxop_fill_box(s->gfx_state, gfx_rect(0, 0, 320, 200), s->ega_colors[0]); // Fill screen black
gfxop_update(s->gfx_state);