From f562661146e04813207a692eec5295616a3bf00d Mon Sep 17 00:00:00 2001 From: Vincent Wei Date: Tue, 9 Apr 2019 10:47:38 +0800 Subject: [PATCH] use 0xff for alpha of RGB2Pixel --- include/gdi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/gdi.h b/include/gdi.h index 068ce12a..a997846f 100644 --- a/include/gdi.h +++ b/include/gdi.h @@ -2769,7 +2769,7 @@ MG_EXPORT void GUIAPI RGB2Pixels (HDC hdc, const RGB* rgbs, */ static inline gal_pixel RGB2Pixel (HDC hdc, Uint8 r, Uint8 g, Uint8 b) { - RGB rgb = {r, g, b, 0}; + RGB rgb = {r, g, b, 0xFF}; gal_pixel pixel; RGB2Pixels (hdc, &rgb, &pixel, 1);