aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/gui/gui.cpp
diff options
context:
space:
mode:
authorMartin Kiewitz2009-10-05 21:38:51 +0000
committerMartin Kiewitz2009-10-05 21:38:51 +0000
commit64d73415cac1e81e144a6604eecb8b5c9f134032 (patch)
tree93386e8dc75a9c1b0b142678d3a8fdb1bc739d17 /engines/sci/gui/gui.cpp
parentc30cdf65e7597ceef80c6e25a382ac7531d33289 (diff)
downloadscummvm-rg350-64d73415cac1e81e144a6604eecb8b5c9f134032.tar.gz
scummvm-rg350-64d73415cac1e81e144a6604eecb8b5c9f134032.tar.bz2
scummvm-rg350-64d73415cac1e81e144a6604eecb8b5c9f134032.zip
SCI/newgui: changed the way dithering works on ega games, also default value change for kDrawStatus
svn-id: r44679
Diffstat (limited to 'engines/sci/gui/gui.cpp')
-rw-r--r--engines/sci/gui/gui.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/engines/sci/gui/gui.cpp b/engines/sci/gui/gui.cpp
index 9352c6c348..e08f231286 100644
--- a/engines/sci/gui/gui.cpp
+++ b/engines/sci/gui/gui.cpp
@@ -107,11 +107,6 @@ void SciGui::localToGlobal(int16 *x, int16 *y) {
reg_t SciGui::newWindow(Common::Rect dims, Common::Rect restoreRect, uint16 style, int16 priority, int16 colorPen, int16 colorBack, const char *title) {
GuiWindow *wnd = NULL;
- if (!_s->resMan->isVGA()) {
- colorPen |= (colorPen << 4);
- colorBack |= (colorBack << 4);
- }
-
if (restoreRect.top != 0 && restoreRect.left != 0 && restoreRect.height() != 0 && restoreRect.width() != 0)
wnd = _windowMgr->NewWindow(dims, &restoreRect, title, style, priority, false);
else
@@ -197,8 +192,6 @@ void SciGui::display(const char *text, int argc, reg_t *argv) {
break;
}
}
- if (!_s->resMan->isVGA())
- bgcolor |= (bgcolor << 4);
// now drawing the text
_gfx->TextSize(rect, text, -1, width);
@@ -241,11 +234,6 @@ void SciGui::textColors(int argc, reg_t *argv) {
void SciGui::drawStatus(const char *text, int16 colorPen, int16 colorBack) {
GuiPort *oldPort = _gfx->SetPort(_gfx->_menuPort);
- if (!_s->resMan->isVGA()) {
- colorPen |= colorPen << 4;
- colorBack |= colorBack << 4;
- }
-
_gfx->FillRect(_gfx->_menuRect, 1, colorBack);
_gfx->PenColor(colorPen);
_gfx->MoveTo(0, 1);
@@ -323,15 +311,11 @@ void SciGui::graphFillBoxBackground(Common::Rect rect) {
}
void SciGui::graphFillBox(Common::Rect rect, uint16 colorMask, int16 color, int16 priority, int16 control) {
- if (!_s->resMan->isVGA())
- color |= (color << 4);
_gfx->FillRect(rect, colorMask, color, priority, control);
_screen->copyToScreen();
}
void SciGui::graphDrawLine(Common::Point startPoint, Common::Point endPoint, int16 color, int16 priority, int16 control) {
- if (!_s->resMan->isVGA())
- color |= (color << 4);
_gfx->Draw_Line(startPoint.x, startPoint.y, endPoint.x, endPoint.y, color, priority, control);
_screen->copyToScreen();
}