fixed ps2 unswizzling

This commit is contained in:
aap 2020-07-21 13:04:44 +02:00
parent 65d14730da
commit 853fa44982
1 changed files with 1 additions and 1 deletions

View File

@ -1386,7 +1386,7 @@ unswizzleRaster(Raster *raster)
h = max(raster->height, minh);
px = raster->pixels;
logw = 0;
for(i = 1; i < raster->width; i *= 2) logw++;
for(i = 1; i < w; i *= 2) logw++;
mask = (1<<logw+2)-1;
if(raster->format & Raster::PAL4 && natras->flags & Ps2Raster::SWIZZLED4){