diff options
author | Willem Jan Palenstijn | 2009-03-08 13:43:11 +0000 |
---|---|---|
committer | Willem Jan Palenstijn | 2009-03-08 13:43:11 +0000 |
commit | feabf9d33f8bbf98aa8afd2be8303b34a084c410 (patch) | |
tree | a3043b335009f34d96ef0d34118c597055bd1342 | |
parent | 8318750f4131a36d0470f9f7ced672f3efc3a5d6 (diff) | |
download | scummvm-rg350-feabf9d33f8bbf98aa8afd2be8303b34a084c410.tar.gz scummvm-rg350-feabf9d33f8bbf98aa8afd2be8303b34a084c410.tar.bz2 scummvm-rg350-feabf9d33f8bbf98aa8afd2be8303b34a084c410.zip |
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
-rw-r--r-- | engines/sci/gfx/operations.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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); |