Fid -Wold-style-cast warning in SDL-only code

This commit is contained in:
Kp 2016-12-29 03:27:08 +00:00
parent a10d9e0bba
commit 29c912d2da

View file

@ -387,7 +387,7 @@ static int gr_internal_color_string(int x, int y, const char *s )
break;
}
letter = (unsigned char)*text_ptr - cv_font.ft_minchar;
letter = static_cast<uint8_t>(*text_ptr) - cv_font.ft_minchar;
const auto &result = get_char_width<int>(cv_font, text_ptr[0], text_ptr[1]);
const auto &width = result.width;