GUI: Fix widget clipping

This commit is contained in:
Eugene Sandulenko 2016-07-22 11:15:58 +03:00 committed by Alexander Tkachev
parent ea80e24481
commit a686049c46

View File

@ -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;