diff --git a/desktop_version/src/IMERender.cpp b/desktop_version/src/IMERender.cpp index eeaa479771..daf7116c09 100644 --- a/desktop_version/src/IMERender.cpp +++ b/desktop_version/src/IMERender.cpp @@ -93,8 +93,8 @@ void ime_set_rect(SDL_Rect* stretch_info) } SDL_Rect imebox_scaled = imebox_border; - float x_scale = stretch_info->w / SCREEN_WIDTH_PIXELS; - float y_scale = stretch_info->h / SCREEN_HEIGHT_PIXELS; + float x_scale = (float) stretch_info->w / SCREEN_WIDTH_PIXELS; + float y_scale = (float) stretch_info->h / SCREEN_HEIGHT_PIXELS; imebox_scaled.x *= x_scale; imebox_scaled.y *= y_scale; imebox_scaled.w *= x_scale;