use 0xff for alpha of RGB2Pixel

This commit is contained in:
Vincent Wei
2019-04-09 10:46:54 +08:00
parent c827a8b6a9
commit 7cc185f409
+1 -1
View File
@@ -2772,7 +2772,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);