mirror of
https://github.com/dgis/emu48android
synced 2025-01-17 18:11:37 +01:00
- Partially fix the red/blue color inversion.
This commit is contained in:
parent
de8a56bf86
commit
e205a6c38a
4 changed files with 16 additions and 6 deletions
|
@ -37,6 +37,11 @@ NOT WORKING YET
|
|||
|
||||
CHANGES
|
||||
|
||||
Version 1.3 (2019-03-14)
|
||||
|
||||
- Fix the red and blue color inversion.
|
||||
|
||||
|
||||
Version 1.2 (2019-03-14)
|
||||
|
||||
- Use the KML Global color as background color.
|
||||
|
|
|
@ -6,8 +6,8 @@ android {
|
|||
applicationId "org.emulator.forty.eight"
|
||||
minSdkVersion 19
|
||||
targetSdkVersion 28
|
||||
versionCode 3
|
||||
versionName "1.2"
|
||||
versionCode 4
|
||||
versionName "1.3"
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
externalNativeBuild {
|
||||
cmake {
|
||||
|
|
|
@ -37,6 +37,11 @@ NOT WORKING YET
|
|||
|
||||
CHANGES
|
||||
|
||||
Version 1.3 (2019-03-14)
|
||||
|
||||
- Fix the red and blue color inversion.
|
||||
|
||||
|
||||
Version 1.2 (2019-03-14)
|
||||
|
||||
- Use the KML Global color as background color.
|
||||
|
|
|
@ -1528,9 +1528,9 @@ BOOL StretchBlt(HDC hdcDest, int xDest, int yDest, int wDest, int hDest, HDC hdc
|
|||
BYTE colorIndex = (parity & 0x1 ? sourcePixel[0] & (BYTE)0x0F : sourcePixel[0] >> 4);
|
||||
//BYTE colorIndex = (parity & 0x1 ? sourcePixel[0] >> 4 : sourcePixel[0] & (BYTE)0x0F);
|
||||
if (palPalEntry) {
|
||||
destinationPixel[0] = palPalEntry[colorIndex].peRed;
|
||||
destinationPixel[0] = palPalEntry[colorIndex].peBlue;
|
||||
destinationPixel[1] = palPalEntry[colorIndex].peGreen;
|
||||
destinationPixel[2] = palPalEntry[colorIndex].peBlue;
|
||||
destinationPixel[2] = palPalEntry[colorIndex].peRed;
|
||||
destinationPixel[3] = 255;
|
||||
} else {
|
||||
destinationPixel[0] = colorIndex;
|
||||
|
@ -1543,9 +1543,9 @@ BOOL StretchBlt(HDC hdcDest, int xDest, int yDest, int wDest, int hDest, HDC hdc
|
|||
case 8: {
|
||||
BYTE colorIndex = sourcePixel[0];
|
||||
if (palPalEntry) {
|
||||
destinationPixel[0] = palPalEntry[colorIndex].peRed;
|
||||
destinationPixel[0] = palPalEntry[colorIndex].peBlue;
|
||||
destinationPixel[1] = palPalEntry[colorIndex].peGreen;
|
||||
destinationPixel[2] = palPalEntry[colorIndex].peBlue;
|
||||
destinationPixel[2] = palPalEntry[colorIndex].peRed;
|
||||
destinationPixel[3] = 255;
|
||||
} else {
|
||||
destinationPixel[0] = sourcePixel[0];
|
||||
|
|
Loading…
Reference in a new issue