Browse Source

Try to fix MSVC build

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

+ 1 - 1
main.c

@@ -260,7 +260,7 @@ int main(int argc, char **argv)
 
 
         for (size_t row = 0; row < editor.size; ++row) {
         for (size_t row = 0; row < editor.size; ++row) {
             const Line *line = editor.lines + row;
             const Line *line = editor.lines + row;
-            render_text_sized(renderer, &font, line->chars, line->size, vec2f(0.0f, row * FONT_CHAR_HEIGHT * FONT_SCALE), 0xFFFFFFFF, FONT_SCALE);
+            render_text_sized(renderer, &font, line->chars, line->size, vec2f(0.0f, (float) row * FONT_CHAR_HEIGHT * FONT_SCALE), 0xFFFFFFFF, FONT_SCALE);
         }
         }
         render_cursor(renderer, &font);
         render_cursor(renderer, &font);