mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-30 15:08:31 +00:00
X11TK: Fix build
This commit is contained in:
@@ -342,7 +342,7 @@ static void X11Toolkit_InitWindowFonts(SDL_ToolkitWindowX11 *window)
|
||||
SDL_free(font);
|
||||
|
||||
if (!window->font_set) {
|
||||
if (window->scale && window->iscale > 0) {
|
||||
if (window->scale != 0 && window->iscale > 0) {
|
||||
window->iscale = (int)SDL_ceilf(window->scale);
|
||||
window->scale = 0;
|
||||
} else {
|
||||
@@ -378,7 +378,7 @@ static void X11Toolkit_InitWindowFonts(SDL_ToolkitWindowX11 *window)
|
||||
SDL_free(font);
|
||||
if (!window->font_struct) {
|
||||
if (window->iscale > 0) {
|
||||
if (window->scale) {
|
||||
if (window->scale != 0) {
|
||||
window->iscale = (int)SDL_ceilf(window->scale);
|
||||
window->scale = 0;
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user