mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-06 14:43:20 +00:00
X11TK: Fix build
This commit is contained in:
parent
7cc477d458
commit
4363582e6d
1 changed files with 2 additions and 2 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue