From ea57b208ec55ced9b73776efb1001b173e1e4c2c Mon Sep 17 00:00:00 2001 From: koldo Date: Sun, 24 Jan 2021 16:27:38 +0000 Subject: [PATCH] *RasterPlayer: Fixed disposal thanks to Klugier git-svn-id: svn://ultimatepp.org/upp/trunk@15703 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/RasterPlayer/RasterPlayer.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/uppsrc/RasterPlayer/RasterPlayer.cpp b/uppsrc/RasterPlayer/RasterPlayer.cpp index 201f26aee..a26c741fc 100644 --- a/uppsrc/RasterPlayer/RasterPlayer.cpp +++ b/uppsrc/RasterPlayer/RasterPlayer.cpp @@ -79,12 +79,11 @@ bool RasterPlayer::LoadBuffer(const String &buffer) { raster->SeekPage(i); r = raster->GetPageRect(i); switch (raster->GetPageDisposal(i)) { - case 1: - case 2: iw.DrawRect(r, SColorFace()); + case 0: + case 1: break; + case 2: iw.DrawRect(sz, SColorFace()); break; - //case 2: iw.DrawRect(sz, White()); // It seems gif files do not comply with standard - // break; - case 4: if (i > 0) + case 3: if (i > 0) previous = GetRect_(images[i-1], r); iw.DrawRect(sz, SColorFace()); break;