From cbb6f919676bd1a44d91bf672487f11973094e97 Mon Sep 17 00:00:00 2001 From: Greg Frieger Date: Tue, 3 Mar 2009 14:27:49 +0000 Subject: SCI1: Improved color mapping when drawing line/box/text. Text with transparent background now displays correctly. svn-id: r39089 --- engines/sci/engine/game.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'engines/sci/engine/game.cpp') 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); -- cgit v1.2.3