mirror of
https://github.com/aap/librw.git
synced 2024-11-25 05:05:42 +00:00
fixed ps2 unswizzling
This commit is contained in:
parent
65d14730da
commit
853fa44982
@ -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){
|
||||||
|
Loading…
Reference in New Issue
Block a user