diff options
author | Martin Kiewitz | 2009-10-14 09:56:11 +0000 |
---|---|---|
committer | Martin Kiewitz | 2009-10-14 09:56:11 +0000 |
commit | 947d3ab5d47f974832955d75a466a9199f928d92 (patch) | |
tree | 3ed7d8e3b8b08a427bf65338ac63627c49acc4b9 /engines | |
parent | 4c91ace5307e2451ad7217f352c57ed51ffa84af (diff) | |
download | scummvm-rg350-947d3ab5d47f974832955d75a466a9199f928d92.tar.gz scummvm-rg350-947d3ab5d47f974832955d75a466a9199f928d92.tar.bz2 scummvm-rg350-947d3ab5d47f974832955d75a466a9199f928d92.zip |
SCI/newgui: coordinates fixup for embeeded cels
svn-id: r45062
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sci/gui/gui_picture.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/gui/gui_picture.cpp b/engines/sci/gui/gui_picture.cpp index 84f815c417..78ea02fef3 100644 --- a/engines/sci/gui/gui_picture.cpp +++ b/engines/sci/gui/gui_picture.cpp @@ -209,7 +209,7 @@ void SciGuiPicture::drawCelData(byte *inbuffer, int size, int headerPos, int rle while (y < lastY) { curByte = *ptr++; if ((curByte != clearColor) && (priority >= _screen->getPriority(x, y))) - _screen->putPixel(callerX + x, y, SCI_SCREEN_MASK_VISUAL | SCI_SCREEN_MASK_PRIORITY, curByte, priority, 0); + _screen->putPixel(x, y, SCI_SCREEN_MASK_VISUAL | SCI_SCREEN_MASK_PRIORITY, curByte, priority, 0); x++; if (x >= rightX) { x = leftX; y++; @@ -221,7 +221,7 @@ void SciGuiPicture::drawCelData(byte *inbuffer, int size, int headerPos, int rle while (y < lastY) { curByte = *ptr++; if ((curByte != clearColor) && (priority >= _screen->getPriority(x, y))) - _screen->putPixel(callerX + x, y, SCI_SCREEN_MASK_VISUAL | SCI_SCREEN_MASK_PRIORITY, curByte, priority, 0); + _screen->putPixel(x, y, SCI_SCREEN_MASK_VISUAL | SCI_SCREEN_MASK_PRIORITY, curByte, priority, 0); if (x == leftX) { x = rightX; y++; } |