From 947d3ab5d47f974832955d75a466a9199f928d92 Mon Sep 17 00:00:00 2001 From: Martin Kiewitz Date: Wed, 14 Oct 2009 09:56:11 +0000 Subject: SCI/newgui: coordinates fixup for embeeded cels svn-id: r45062 --- engines/sci/gui/gui_picture.cpp | 4 ++-- 1 file 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++; } -- cgit v1.2.3