mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 21:59:17 +00:00
GUI: Fix widget clipping
This commit is contained in:
parent
ea80e24481
commit
a686049c46
@ -498,7 +498,7 @@ void PicButtonWidget::drawWidget() {
|
||||
const int x = _x + (_w - gfx->w) / 2;
|
||||
const int y = _y + (_h - gfx->h) / 2;
|
||||
|
||||
g_gui.theme()->drawSurface(Common::Rect(x, y, x + gfx->w, y + gfx->h), *gfx, _state, _alpha, _transparency);
|
||||
g_gui.theme()->drawSurfaceClip(Common::Rect(x, y, x + gfx->w, y + gfx->h), getBossClipRect(), *gfx, _state, _alpha, _transparency);
|
||||
}
|
||||
} else {
|
||||
Graphics::TransparentSurface *gfx;
|
||||
|
Loading…
Reference in New Issue
Block a user