diff options
Diffstat (limited to 'engines/sci/graphics/gui.cpp')
-rw-r--r-- | engines/sci/graphics/gui.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/engines/sci/graphics/gui.cpp b/engines/sci/graphics/gui.cpp index 2f8b278534..a923c381dc 100644 --- a/engines/sci/graphics/gui.cpp +++ b/engines/sci/graphics/gui.cpp @@ -176,7 +176,7 @@ int16 SciGui::priorityToCoordinate(int16 priority) { reg_t SciGui::newWindow(Common::Rect dims, Common::Rect restoreRect, uint16 style, int16 priority, int16 colorPen, int16 colorBack, const char *title) { Window *wnd = NULL; - if (_s->resMan->getViewType() == kViewAmiga) { + if (_s->resMan->isAmiga32color()) { colorPen = _palette->mapAmigaColor(colorPen); colorBack = _palette->mapAmigaColor(colorBack); } @@ -237,14 +237,14 @@ void SciGui::display(const char *text, int argc, reg_t *argv) { break; case SCI_DISPLAY_SETPENCOLOR: colorPen = argv[0].toUint16(); - if (_s->resMan->getViewType() == kViewAmiga) + if (_s->resMan->isAmiga32color()) colorPen = _palette->mapAmigaColor(colorPen); _gfx->PenColor(colorPen); argc--; argv++; break; case SCI_DISPLAY_SETBACKGROUNDCOLOR: colorBack = argv[0].toUint16(); - if (_s->resMan->getViewType() == kViewAmiga) + if (_s->resMan->isAmiga32color()) colorBack = _palette->mapAmigaColor(colorBack); argc--; argv++; break; @@ -324,7 +324,7 @@ void SciGui::textColors(int argc, reg_t *argv) { void SciGui::drawStatus(const char *text, int16 colorPen, int16 colorBack) { Port *oldPort = _gfx->SetPort(_gfx->_menuPort); - if (_s->resMan->getViewType() == kViewAmiga) { + if (_s->resMan->isAmiga32color()) { colorPen = _palette->mapAmigaColor(colorPen); colorBack = _palette->mapAmigaColor(colorBack); } @@ -506,14 +506,14 @@ void SciGui::graphFillBoxBackground(Common::Rect rect) { } void SciGui::graphFillBox(Common::Rect rect, uint16 colorMask, int16 color, int16 priority, int16 control) { - if (_s->resMan->getViewType() == kViewAmiga) + if (_s->resMan->isAmiga32color()) color = _palette->mapAmigaColor(color); _gfx->FillRect(rect, colorMask, color, priority, control); } void SciGui::graphFrameBox(Common::Rect rect, int16 color) { int16 oldColor = _gfx->GetPort()->penClr; - if (_s->resMan->getViewType() == kViewAmiga) + if (_s->resMan->isAmiga32color()) color = _palette->mapAmigaColor(color); _gfx->PenColor(color); _gfx->FrameRect(rect); @@ -521,7 +521,7 @@ void SciGui::graphFrameBox(Common::Rect rect, int16 color) { } void SciGui::graphDrawLine(Common::Point startPoint, Common::Point endPoint, int16 color, int16 priority, int16 control) { - if (_s->resMan->getViewType() == kViewAmiga) + if (_s->resMan->isAmiga32color()) color = _palette->mapAmigaColor(color); _gfx->OffsetLine(startPoint, endPoint); _screen->drawLine(startPoint.x, startPoint.y, endPoint.x, endPoint.y, color, priority, control); |