mirror of
https://github.com/fadden/ciderpress.git
synced 2025-01-19 22:30:24 +00:00
Fix 640 mode palette offsets in SHR converter.
This commit is contained in:
parent
7dd253754d
commit
2ada081dc6
@ -143,25 +143,25 @@ ReformatSHR::SHRDataToBitmap8(const unsigned char* pPixels,
|
|||||||
|
|
||||||
pixelVal = (pixelByte >> 6) & 0x03;
|
pixelVal = (pixelByte >> 6) & 0x03;
|
||||||
//rgbval = fColorLookup[colorTable][pixelVal + 12];
|
//rgbval = fColorLookup[colorTable][pixelVal + 12];
|
||||||
colorIndex = colorTableOffset + pixelVal + 12;
|
colorIndex = colorTableOffset + pixelVal + 8;
|
||||||
SetPix(x, line*2, colorIndex);
|
SetPix(x, line*2, colorIndex);
|
||||||
SetPix(x++, line*2+1, colorIndex);
|
SetPix(x++, line*2+1, colorIndex);
|
||||||
|
|
||||||
pixelVal = (pixelByte >> 4) & 0x03;
|
pixelVal = (pixelByte >> 4) & 0x03;
|
||||||
//rgbval = fColorLookup[colorTable][pixelVal + 8];
|
//rgbval = fColorLookup[colorTable][pixelVal + 8];
|
||||||
colorIndex = colorTableOffset + pixelVal + 8;
|
colorIndex = colorTableOffset + pixelVal + 12;
|
||||||
SetPix(x, line*2, colorIndex);
|
SetPix(x, line*2, colorIndex);
|
||||||
SetPix(x++, line*2+1, colorIndex);
|
SetPix(x++, line*2+1, colorIndex);
|
||||||
|
|
||||||
pixelVal = (pixelByte >> 2) & 0x03;
|
pixelVal = (pixelByte >> 2) & 0x03;
|
||||||
//rgbval = fColorLookup[colorTable][pixelVal + 4];
|
//rgbval = fColorLookup[colorTable][pixelVal + 4];
|
||||||
colorIndex = colorTableOffset + pixelVal + 4;
|
colorIndex = colorTableOffset + pixelVal + 0;
|
||||||
SetPix(x, line*2, colorIndex);
|
SetPix(x, line*2, colorIndex);
|
||||||
SetPix(x++, line*2+1, colorIndex);
|
SetPix(x++, line*2+1, colorIndex);
|
||||||
|
|
||||||
pixelVal = pixelByte & 0x03;
|
pixelVal = pixelByte & 0x03;
|
||||||
//rgbval = fColorLookup[colorTable][pixelVal];
|
//rgbval = fColorLookup[colorTable][pixelVal];
|
||||||
colorIndex = colorTableOffset + pixelVal;
|
colorIndex = colorTableOffset + pixelVal + 4;
|
||||||
SetPix(x, line*2, colorIndex);
|
SetPix(x, line*2, colorIndex);
|
||||||
SetPix(x++, line*2+1, colorIndex);
|
SetPix(x++, line*2+1, colorIndex);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user