SCI: ignore hiresMode when not being upscaledHires for kDrawCel and updateBox on kGraph - fixes kq6 dos

svn-id: r47221
This commit is contained in:
Martin Kiewitz 2010-01-10 11:21:55 +00:00
parent c371c39568
commit 7a5c119930

View File

@ -369,7 +369,8 @@ void SciGui::drawPicture(GuiResourceId pictureId, int16 animationNr, bool animat
}
void SciGui::drawCel(GuiResourceId viewId, int16 loopNo, int16 celNo, uint16 leftPos, uint16 topPos, int16 priority, uint16 paletteNo, bool hiresMode, reg_t upscaledHiresHandle) {
if (!hiresMode) {
// some calls are hiresMode even under kq6 DOS, that's why we check for upscaled hires here
if ((!hiresMode) || (!_screen->getUpscaledHires())) {
_gfx->drawCelAndShow(viewId, loopNo, celNo, leftPos, topPos, priority, paletteNo);
} else {
_gfx->drawHiresCelAndShow(viewId, loopNo, celNo, leftPos, topPos, priority, paletteNo, upscaledHiresHandle);
@ -517,7 +518,8 @@ void SciGui::graphRestoreBox(reg_t handle) {
}
void SciGui::graphUpdateBox(Common::Rect rect, bool hiresMode) {
if (!hiresMode)
// some calls are hiresMode even under kq6 DOS, that's why we check for upscaled hires here
if ((!hiresMode) || (!_screen->getUpscaledHires()))
_gfx->BitsShow(rect);
else
_gfx->BitsShowHires(rect);