mirror of
https://github.com/wiiu-env/WiiUPluginLoaderBackend.git
synced 2024-11-22 04:39:17 +01:00
Don't draw transparent pixels
Signed-off-by: Thomas Rohloff <v10lator@myway.de>
This commit is contained in:
parent
c38ef605cc
commit
184ca0bc5c
@ -60,6 +60,10 @@ void DrawUtils::clear(Color col) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void DrawUtils::drawPixel(uint32_t x, uint32_t y, uint8_t r, uint8_t g, uint8_t b, uint8_t a) {
|
void DrawUtils::drawPixel(uint32_t x, uint32_t y, uint8_t r, uint8_t g, uint8_t b, uint8_t a) {
|
||||||
|
if (a == 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
float opacity = a / 255.0f;
|
float opacity = a / 255.0f;
|
||||||
|
|
||||||
// put pixel in the drc buffer
|
// put pixel in the drc buffer
|
||||||
|
Loading…
Reference in New Issue
Block a user