mirror of
https://github.com/aap/librw.git
synced 2025-12-19 08:59:51 +00:00
fixed ps2 unswizzling
This commit is contained in:
@@ -1386,7 +1386,7 @@ unswizzleRaster(Raster *raster)
|
|||||||
h = max(raster->height, minh);
|
h = max(raster->height, minh);
|
||||||
px = raster->pixels;
|
px = raster->pixels;
|
||||||
logw = 0;
|
logw = 0;
|
||||||
for(i = 1; i < raster->width; i *= 2) logw++;
|
for(i = 1; i < w; i *= 2) logw++;
|
||||||
mask = (1<<logw+2)-1;
|
mask = (1<<logw+2)-1;
|
||||||
|
|
||||||
if(raster->format & Raster::PAL4 && natras->flags & Ps2Raster::SWIZZLED4){
|
if(raster->format & Raster::PAL4 && natras->flags & Ps2Raster::SWIZZLED4){
|
||||||
|
|||||||
Reference in New Issue
Block a user