Bug #1884 ยป 0060-sdl3-Fix-error-on-drawing-empty-chatline.patch
| client/gui-sdl3/gui_string.c | ||
|---|---|---|
|
TTF_GetFontHeight(pstr->font), text->h);
|
||
|
log_debug("create_utf8_surf: String is %d length", text->w);
|
||
|
} else {
|
||
|
/* Likely empty (zero character) string. */
|
||
|
log_debug("create_utf8_surf: text NULL");
|
||
|
text = create_surf(0, 0);
|
||
|
/* Leave text to NULL. Callers can handle it, but not e.g.
|
||
|
* zero size surface. */
|
||
|
}
|
||
|
if (!((pstr->style & 0x0F) & TTF_STYLE_NORMAL)) {
|
||