mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-07 10:48:43 +00:00
SCI: delete hidden planes in kFrameout
svn-id: r51246
This commit is contained in:
parent
2047e75d2b
commit
d643928d0d
@ -132,9 +132,6 @@ void GfxFrameout::kernelFrameout() {
|
||||
reg_t planeObject = *it;
|
||||
uint16 planePriority = readSelectorValue(_segMan, planeObject, SELECTOR(priority));
|
||||
|
||||
if (planePriority == 0xffff) // Plane currently not meant to be shown
|
||||
continue;
|
||||
|
||||
Common::Rect planeRect;
|
||||
planeRect.top = readSelectorValue(_segMan, planeObject, SELECTOR(top));
|
||||
planeRect.left = readSelectorValue(_segMan, planeObject, SELECTOR(left));
|
||||
@ -148,6 +145,12 @@ void GfxFrameout::kernelFrameout() {
|
||||
planeRect.bottom = (planeRect.bottom * _screen->getHeight()) / planeResY;
|
||||
planeRect.right = (planeRect.right * _screen->getWidth()) / planeResX;
|
||||
|
||||
if (planePriority == 0xffff) { // Plane currently not meant to be shown
|
||||
// TODO: better remember previous state and only delete if it got hidden now
|
||||
_paint32->fillRect(planeRect, 0);
|
||||
continue;
|
||||
}
|
||||
|
||||
Common::Rect planeClipRect(planeRect.width(), planeRect.height());
|
||||
|
||||
Common::Rect upscaledPlaneRect = planeRect;
|
||||
|
Loading…
x
Reference in New Issue
Block a user