aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArisotura <thetotalworm@gmail.com>2019-05-10 18:22:34 +0200
committerArisotura <thetotalworm@gmail.com>2019-05-10 18:22:34 +0200
commit7a2504a3a432f16c009794ae4ec311d2ab5743e7 (patch)
tree9f426d76889af90611fb09e9e253f5a5bc41dcf3
parent492d2cfa692bf0747828f528430136268929affb (diff)
fix derpy bug
-rw-r--r--src/GPU2D.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/GPU2D.cpp b/src/GPU2D.cpp
index f725de5..aaaddab 100644
--- a/src/GPU2D.cpp
+++ b/src/GPU2D.cpp
@@ -559,7 +559,7 @@ u32 GPU2D::ColorBlend4(u32 val1, u32 val2, u32 eva, u32 evb)
if (g > 0x003F00) g = 0x003F00;
if (b > 0x3F0000) b = 0x3F0000;
- return r | g | b;
+ return r | g | b | 0xFF000000;
}
u32 GPU2D::ColorBlend5(u32 val1, u32 val2)
@@ -582,7 +582,7 @@ u32 GPU2D::ColorBlend5(u32 val1, u32 val2)
if (g > 0x003F00) g = 0x003F00;
if (b > 0x3F0000) b = 0x3F0000;
- return r | g | b;
+ return r | g | b | 0xFF000000;
}
u32 GPU2D::ColorBrightnessUp(u32 val, u32 factor)
@@ -595,7 +595,7 @@ u32 GPU2D::ColorBrightnessUp(u32 val, u32 factor)
g += ((((0x003F00 - g) * factor) >> 4) & 0x003F00);
b += ((((0x3F0000 - b) * factor) >> 4) & 0x3F0000);
- return r | g | b;
+ return r | g | b | 0xFF000000;
}
u32 GPU2D::ColorBrightnessDown(u32 val, u32 factor)
@@ -608,7 +608,7 @@ u32 GPU2D::ColorBrightnessDown(u32 val, u32 factor)
g -= (((g * factor) >> 4) & 0x003F00);
b -= (((b * factor) >> 4) & 0x3F0000);
- return r | g | b;
+ return r | g | b | 0xFF000000;
}