diff options
author | Martin Kiewitz | 2009-10-13 07:17:30 +0000 |
---|---|---|
committer | Martin Kiewitz | 2009-10-13 07:17:30 +0000 |
commit | 19cacbdb3c0918cedc244db97a47598b42198fa2 (patch) | |
tree | f4982d28c4bff408afb6b28c4c70eaca55db080f /engines | |
parent | aea23b47149a2d92b52f1e1ea55c660719805518 (diff) | |
download | scummvm-rg350-19cacbdb3c0918cedc244db97a47598b42198fa2.tar.gz scummvm-rg350-19cacbdb3c0918cedc244db97a47598b42198fa2.tar.bz2 scummvm-rg350-19cacbdb3c0918cedc244db97a47598b42198fa2.zip |
SCI/newgui: SciGuiScreen putPixel etc. needs to use _width and _height instead of _displayWidth and _displayHeight
svn-id: r45004
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sci/gui/gui_screen.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/engines/sci/gui/gui_screen.cpp b/engines/sci/gui/gui_screen.cpp index 30eea9cbbf..1ec194772c 100644 --- a/engines/sci/gui/gui_screen.cpp +++ b/engines/sci/gui/gui_screen.cpp @@ -82,7 +82,7 @@ byte SciGuiScreen::getDrawingMask(byte color, byte prio, byte control) { } void SciGuiScreen::putPixel(int x, int y, byte drawMask, byte color, byte priority, byte control) { - int offset = y * _displayWidth + x; + int offset = y * _width + x; if (drawMask & SCI_SCREEN_MASK_VISUAL) { _visualScreen[offset] = color; @@ -159,26 +159,26 @@ void SciGuiScreen::drawLine(Common::Point startPoint, Common::Point endPoint, by } byte SciGuiScreen::getVisual(int x, int y) { - return _visualScreen[y * _displayWidth + x]; + return _visualScreen[y * _width + x]; } byte SciGuiScreen::getPriority(int x, int y) { - return _priorityScreen[y * _displayWidth + x]; + return _priorityScreen[y * _width + x]; } byte SciGuiScreen::getControl(int x, int y) { - return _controlScreen[y * _displayWidth + x]; + return _controlScreen[y * _width + x]; } -byte SciGuiScreen::isFillMatch(int16 x, int16 y, byte flag, byte t_color, byte t_pri, byte t_con) { - int offset = y * _displayWidth + x; +byte SciGuiScreen::isFillMatch(int16 x, int16 y, byte screenMask, byte t_color, byte t_pri, byte t_con) { + int offset = y * _width + x; byte match = 0; - if (flag & SCI_SCREEN_MASK_VISUAL && *(_visualScreen + offset) == t_color) + if (screenMask & SCI_SCREEN_MASK_VISUAL && *(_visualScreen + offset) == t_color) match |= SCI_SCREEN_MASK_VISUAL; - if (flag & SCI_SCREEN_MASK_PRIORITY && *(_priorityScreen + offset) == t_pri) + if (screenMask & SCI_SCREEN_MASK_PRIORITY && *(_priorityScreen + offset) == t_pri) match |= SCI_SCREEN_MASK_PRIORITY; - if (flag & SCI_SCREEN_MASK_CONTROL && *(_controlScreen + offset) == t_con) + if (screenMask & SCI_SCREEN_MASK_CONTROL && *(_controlScreen + offset) == t_con) match |= SCI_SCREEN_MASK_CONTROL; return match; } |