use 0xff for alpha of RGB2Pixel

This commit is contained in:
Vincent Wei
2019-04-09 10:47:38 +08:00
parent eca15c447d
commit f562661146
+1 -1
View File
@@ -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);