mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-05 18:41:12 +00:00
DIRECTOR: Sanity check for button drawing
This commit is contained in:
parent
0bbfe624be
commit
98f614269f
@ -792,6 +792,9 @@ void Frame::renderText(Graphics::ManagedSurface &surface, uint16 spriteId, Commo
|
||||
textCast->cachedMacText->setWm(_vm->_wm); // TODO this is not a good place to do it
|
||||
const Graphics::ManagedSurface *textSurface = textCast->cachedMacText->getSurface();
|
||||
|
||||
if (!textSurface)
|
||||
return;
|
||||
|
||||
height = textSurface->h;
|
||||
if (textSize != NULL) {
|
||||
// TODO: this offset could be due to incorrect fonts loaded!
|
||||
|
Loading…
x
Reference in New Issue
Block a user