mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-04-04 22:59:49 +00:00
X11TK: Use SDL_roundf instead of normal roundf
This commit is contained in:
@@ -412,7 +412,7 @@ static void X11Toolkit_SettingsNotify(const char *name, XSettingsAction action,
|
||||
/* set scale vars */
|
||||
window->scale = X11Toolkit_GetUIScale(window->xsettings, window->display);
|
||||
window->iscale = (int)SDL_ceilf(window->scale);
|
||||
if (roundf(window->scale) == window->scale) {
|
||||
if (SDL_roundf(window->scale) == window->scale) {
|
||||
window->scale = 0;
|
||||
}
|
||||
|
||||
@@ -618,7 +618,7 @@ SDL_ToolkitWindowX11 *X11Toolkit_CreateWindowStruct(SDL_Window *parent, SDL_Tool
|
||||
window->xsettings_first_time = false;
|
||||
window->scale = X11Toolkit_GetUIScale(window->xsettings, window->display);
|
||||
window->iscale = (int)SDL_ceilf(window->scale);
|
||||
if (roundf(window->scale) == window->scale) {
|
||||
if (SDL_roundf(window->scale) == window->scale) {
|
||||
window->scale = 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user