rickomax / psxprev

PSXPREV - Playstation (PSX) Files Previewer/Extractor
BSD 2-Clause "Simplified" License
193 stars 10 forks source link

Fix 24bpp images multiplying color by 8 #73

Closed trigger-segfault closed 12 months ago

trigger-segfault commented 12 months ago

ReadTexture was multiplying pmode=3 (24bpp) color channels by 8, when the values could already range from 0-255. Fixed this by removing multiplication.

Also added a note for the stpBit in pmode=2, which I didn't notice last time I documented that for ReadPalette.