diff options
author | Le Philousophe | 2019-06-09 17:52:44 +0200 |
---|---|---|
committer | Paul Gilbert | 2019-06-09 14:38:31 -0700 |
commit | ed34a41810fec9bbe5204d38370fdcb4a0682bc3 (patch) | |
tree | a27bcde0a6e40f5972459c0ce395fee20e19f9bc | |
parent | 1297ae2b76ca48e433de6e54922945880251ab3c (diff) | |
download | scummvm-rg350-ed34a41810fec9bbe5204d38370fdcb4a0682bc3.tar.gz scummvm-rg350-ed34a41810fec9bbe5204d38370fdcb4a0682bc3.tar.bz2 scummvm-rg350-ed34a41810fec9bbe5204d38370fdcb4a0682bc3.zip |
GRAPHICS: Fix rects handling in ManagedSurface::copyFrom
Like in create(), when using copyFrom the whole surface gets new data
and is now completely dirty so let's use markAllDirty.
-rw-r--r-- | graphics/managed_surface.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/managed_surface.cpp b/graphics/managed_surface.cpp index 7dca33a619..8a2911b595 100644 --- a/graphics/managed_surface.cpp +++ b/graphics/managed_surface.cpp @@ -129,7 +129,7 @@ void ManagedSurface::copyFrom(const ManagedSurface &surf) { free(); _innerSurface.copyFrom(surf._innerSurface); - clearDirtyRects(); + markAllDirty(); // Pixels data is now owned by us _disposeAfterUse = DisposeAfterUse::YES; |