diff options
Diffstat (limited to 'gui/widget.cpp')
| -rw-r--r-- | gui/widget.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gui/widget.cpp b/gui/widget.cpp index 685b6dfc65..818676dbf4 100644 --- a/gui/widget.cpp +++ b/gui/widget.cpp @@ -346,8 +346,7 @@ void GraphicsWidget::setGfx(const Graphics::Surface *gfx) { return; // TODO: add conversion to OverlayColor - _gfx.create(gfx->w, gfx->h, gfx->bytesPerPixel); - memcpy(_gfx.pixels, gfx->pixels, gfx->h * gfx->pitch); + _gfx.copyFrom(*gfx); } void GraphicsWidget::setGfx(int w, int h, int r, int g, int b) { |
