Skip to content

Commit

Permalink
FULLPIPE: Fix cursor drawing on the edges
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Feb 1, 2014
1 parent b668304 commit b28e740
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion engines/fullpipe/gfx.cpp
Expand Up @@ -979,6 +979,9 @@ void Bitmap::putDibCB(int32 *palette) {

byte *srcPtr = &_pixels[pitch * (endy - _y)];

if (endy - _y < _height)
srcPtr = &_pixels[pitch * (_height - 1)];

int starty = _y;
if (starty < 0) {
starty = 0;
Expand All @@ -992,7 +995,7 @@ void Bitmap::putDibCB(int32 *palette) {
}

if (_flags & 0x1000000) {
for (int y = starty; y < endy; srcPtr -= pitch, y++) {
for (int y = starty; y <= endy; srcPtr -= pitch, y++) {
curDestPtr = (uint16 *)g_fp->_backgroundSurface.getBasePtr(startx, y);
copierKeyColor(curDestPtr, srcPtr, endx - startx + 1, _flags & 0xff, (int32 *)palette, cb05_format);
}
Expand Down

0 comments on commit b28e740

Please sign in to comment.