Commit ec871cc5 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Text style: fix integer overflow

Occurs when shifting alpha = 255 by 24 bits.
parent 9ddb7984
......@@ -43,7 +43,7 @@ typedef struct
int i_font_size; /**< The font size in pixels */
int i_font_color; /**< The color of the text 0xRRGGBB
(native endianness) */
int i_font_alpha; /**< The transparency of the text.
unsigned i_font_alpha; /**< The transparency of the text.
0x00 is fully opaque,
0xFF fully transparent */
int i_style_flags; /**< Formatting style flags */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment