*RasterPlayer: Fixed disposal thanks to Klugier

git-svn-id: svn://ultimatepp.org/upp/trunk@15703 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
koldo 2021-01-24 16:27:38 +00:00
parent 3792c438ba
commit ea57b208ec

View file

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