mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-23 18:24:59 +00:00
SCI/newgui: coordinates fixup for embeeded cels
svn-id: r45062
This commit is contained in:
parent
4c91ace530
commit
947d3ab5d4
@ -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++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user