diff options
author | Martin Kiewitz | 2009-10-07 20:58:33 +0000 |
---|---|---|
committer | Martin Kiewitz | 2009-10-07 20:58:33 +0000 |
commit | 0b83993a6476dc63475f985feb20d3044d20d7f8 (patch) | |
tree | 4f35c81992876cd02f7e5625c212dcba2b7d89b7 /engines/sci/gui32 | |
parent | 20a51e79e889fa10fd0f0b9ba3c66e11855c8b5b (diff) | |
download | scummvm-rg350-0b83993a6476dc63475f985feb20d3044d20d7f8.tar.gz scummvm-rg350-0b83993a6476dc63475f985feb20d3044d20d7f8.tar.bz2 scummvm-rg350-0b83993a6476dc63475f985feb20d3044d20d7f8.zip |
SCI/newgui: kDrawPic cleanup, addToFlag inverse detection currently not working needs fixing
svn-id: r44756
Diffstat (limited to 'engines/sci/gui32')
-rw-r--r-- | engines/sci/gui32/gui32.cpp | 9 | ||||
-rw-r--r-- | engines/sci/gui32/gui32.h | 2 |
2 files changed, 5 insertions, 6 deletions
diff --git a/engines/sci/gui32/gui32.cpp b/engines/sci/gui32/gui32.cpp index af0ddebd2c..329d55db28 100644 --- a/engines/sci/gui32/gui32.cpp +++ b/engines/sci/gui32/gui32.cpp @@ -497,11 +497,10 @@ void SciGui32::drawStatus(const char *text, int16 colorPen, int16 colorBack) { gfxop_update(s->gfx_state); } -void SciGui32::drawPicture(GuiResourceId pictureId, uint16 showStyle, uint16 flags, int16 EGApaletteNo) { +void SciGui32::drawPicture(GuiResourceId pictureId, int16 animationNr, bool mirroredFlag, bool addToFlag, int16 EGApaletteNo) { drawn_pic_t dp; gfx_color_t transparent = s->wm_port->_bgcolor; int picFlags = DRAWPIC01_FLAG_FILL_NORMALLY; - bool add_to_pic = flags; dp.nr = pictureId; if (EGApaletteNo != -1) { @@ -510,7 +509,7 @@ void SciGui32::drawPicture(GuiResourceId pictureId, uint16 showStyle, uint16 fla dp.palette = 0; } - if (showStyle & K_DRAWPIC_FLAG_MIRRORED) + if (mirroredFlag) picFlags |= DRAWPIC1_FLAG_MIRRORED; gfxop_disable_dirty_frames(s->gfx_state); @@ -522,7 +521,7 @@ void SciGui32::drawPicture(GuiResourceId pictureId, uint16 showStyle, uint16 fla s->old_screen = gfxop_grab_pixmap(s->gfx_state, gfx_rect(0, 10, 320, 190)); debugC(2, kDebugLevelGraphics, "Drawing pic.%03d\n", pictureId); - if (add_to_pic) { + if (addToFlag) { gfxop_add_to_pic(s->gfx_state, dp.nr, picFlags, dp.palette); } else { gfxop_new_pic(s->gfx_state, dp.nr, picFlags, dp.palette); @@ -546,7 +545,7 @@ void SciGui32::drawPicture(GuiResourceId pictureId, uint16 showStyle, uint16 fla s->pic_priority_table = gfxop_get_pic_metainfo(s->gfx_state); - s->pic_animate = showStyle & 0xff; // The animation used during kAnimate() later on + s->pic_animate = animationNr; // The animation used during kAnimate() later on s->dyn_views = NULL; s->drop_views = NULL; diff --git a/engines/sci/gui32/gui32.h b/engines/sci/gui32/gui32.h index c2fa45da8a..f134e86fba 100644 --- a/engines/sci/gui32/gui32.h +++ b/engines/sci/gui32/gui32.h @@ -53,7 +53,7 @@ public: void textColors(int argc, reg_t *argv); void drawStatus(const char *text, int16 colorPen, int16 colorBack); - void drawPicture(GuiResourceId pictureId, uint16 showStyle, uint16 flags, int16 EGApaletteNo); + void drawPicture(GuiResourceId pictureId, int16 animationNr, bool mirroredFlag, bool addToFlag, int16 EGApaletteNo); void drawCel(GuiResourceId viewId, GuiViewLoopNo loopNo, GuiViewCelNo celNo, uint16 leftPos, uint16 topPos, int16 priority, uint16 paletteNo); void drawControlButton(Common::Rect rect, reg_t obj, const char *text, int16 fontId, int16 style, bool hilite); void drawControlText(Common::Rect rect, reg_t obj, const char *text, int16 fontId, int16 mode, int16 style, bool hilite); |