From feabf9d33f8bbf98aa8afd2be8303b34a084c410 Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Sun, 8 Mar 2009 13:43:11 +0000 Subject: Fix boxes not blocking control/priority map. This is a regression from r39089 and caused text to be hidden behind trees in the KQ5 introduction and missing text in longbow. svn-id: r39226 --- engines/sci/gfx/operations.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'engines/sci/gfx') diff --git a/engines/sci/gfx/operations.cpp b/engines/sci/gfx/operations.cpp index e1040327a4..d6274648cd 100644 --- a/engines/sci/gfx/operations.cpp +++ b/engines/sci/gfx/operations.cpp @@ -1087,6 +1087,8 @@ int gfxop_draw_box(gfx_state_t *state, rect_t box, gfx_color_t color1, gfx_color // Reverse offset if we have to interpret colors inversely if (shade_type == GFX_BOX_SHADE_FLAT) { + color1.priority = 0; + color1.control = 0; if (color1.visual.global_index == GFX_COLOR_INDEX_UNMAPPED) gfxop_set_color(state, &color1, color1); return drv->draw_filled_rect(drv, new_box, color1, color1, GFX_SHADE_FLAT); -- cgit v1.2.3