Browse Source

Try to fix MSVC build

rexim 4 years ago
parent
commit
040ae6823c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      main.c

+ 1 - 1
main.c

@@ -186,7 +186,7 @@ void buffer_delete(void)
 
 void render_cursor(SDL_Renderer *renderer, const Font *font)
 {
-    const Vec2f pos = vec2f(buffer_cursor * FONT_CHAR_WIDTH * FONT_SCALE, 0.0f);
+    const Vec2f pos = vec2f((float) buffer_cursor * FONT_CHAR_WIDTH * FONT_SCALE, 0.0f);
 
     const SDL_Rect rect = {
         .x = (int) floorf(pos.x),