blob: e8c7f938bde582b8ff7b5ae8aa6aade6aa19a52d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
https://bugs.gentoo.org/739110
--- a/DxLib.cpp
+++ b/DxLib.cpp
@@ -213,7 +213,7 @@ void ChangeFontType(byte type)
void DrawString(int a, int b, const char *x, Uint32 c)
{
- SDL_Color color = { c >> 16, c >> 8, c };
+ SDL_Color color = { static_cast<unsigned char>(c >> 16), static_cast<unsigned char>(c >> 8), static_cast<unsigned char>(c) };
SDL_Surface *rendered = TTF_RenderUTF8_Solid(font[fontsize], x, color);
if (fontType == DX_FONTTYPE_EDGE) {
SDL_Color blk = { 0, 0, 0 };
--
2.51.1
|