mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
FULLPIPE: Fixed off-screen bitmap rendering
This commit is contained in:
@@ -783,16 +783,18 @@ void Bitmap::putDibCB(int32 *palette) {
|
||||
|
||||
byte *srcPtr = &_pixels[pitch * (endy - _y)];
|
||||
|
||||
int starty = _y;
|
||||
if (starty < 0) {
|
||||
starty = 0;
|
||||
srcPtr = &_pixels[pitch * (_height + _y)];
|
||||
}
|
||||
|
||||
int startx = _x;
|
||||
if (startx < 0) {
|
||||
srcPtr += bpp * -_x;
|
||||
startx = 0;
|
||||
}
|
||||
|
||||
int starty = _y;
|
||||
if (starty < 0)
|
||||
starty = 0;
|
||||
|
||||
if (_flags & 0x1000000) {
|
||||
for (int y = starty; y < endy; srcPtr -= pitch, y++) {
|
||||
curDestPtr = (uint16 *)g_fullpipe->_backgroundSurface.getBasePtr(startx, y);
|
||||
|
||||
Reference in New Issue
Block a user