mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-05 09:49:14 +00:00
LAB: Prevent the Image destructor from deleting external scroll buffers
This commit is contained in:
parent
9d53245f73
commit
7a81e03b25
@ -996,6 +996,9 @@ void DisplayMan::scrollDisplayX(int16 dx, uint16 x1, uint16 y1, uint16 x2, uint1
|
||||
setPen(0);
|
||||
rectFill(x2 + dx + 1, y1, x2, y2);
|
||||
}
|
||||
|
||||
// Prevent the Image destructor from deleting the external buffer
|
||||
im._imageData = nullptr;
|
||||
}
|
||||
|
||||
void DisplayMan::scrollDisplayY(int16 dy, uint16 x1, uint16 y1, uint16 x2, uint16 y2, byte *buffer) {
|
||||
@ -1027,6 +1030,9 @@ void DisplayMan::scrollDisplayY(int16 dy, uint16 x1, uint16 y1, uint16 x2, uint1
|
||||
setPen(0);
|
||||
rectFill(x1, y2 + dy + 1, x2, y2);
|
||||
}
|
||||
|
||||
// Prevent the Image destructor from deleting the external buffer
|
||||
im._imageData = nullptr;
|
||||
}
|
||||
|
||||
uint16 DisplayMan::fadeNumIn(uint16 num, uint16 res, uint16 counter) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user