GUI: Fix missing GraphicsWidget gfx in some cases
This commit is contained in:
parent
0b25368f7c
commit
3df69113f3
1 changed files with 1 additions and 1 deletions
|
@ -862,7 +862,7 @@ void GraphicsWidget::setGfx(const Graphics::Surface *gfx) {
|
|||
return;
|
||||
}
|
||||
|
||||
if (_w != gfx->w || _h != gfx->h) {
|
||||
if ((_w != gfx->w || _h != gfx->h) && _w && _h) {
|
||||
Graphics::Surface *tmp = scaleGfx(gfx, _w, _h);
|
||||
_gfx.copyFrom(*tmp);
|
||||
tmp->free();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue