Skip to content

Commit

Permalink
don't forget float lol
Browse files Browse the repository at this point in the history
  • Loading branch information
Daaaav committed Aug 2, 2024
1 parent 03d24a2 commit 071185d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions desktop_version/src/IMERender.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 071185d

Please sign in to comment.