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