slider: Fix float type conversion

This commit is contained in:
Rob Loach
2026-04-23 09:48:46 -04:00
parent d4c0ef2f69
commit c82bebc2c3
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -25958,7 +25958,7 @@ nk_draw_slider(struct nk_command_buffer *out, nk_flags state,
bar.h = style->bar_height;
/* filled background bar style */
fill.w = visual_cursor->x+ 0.5*visual_cursor->w - bar.x;
fill.w = visual_cursor->x+ 0.5f*visual_cursor->w - bar.x;
fill.x = bar.x;
fill.y = bar.y;
fill.h = bar.h;
+1 -1
View File
@@ -86,7 +86,7 @@ nk_draw_slider(struct nk_command_buffer *out, nk_flags state,
bar.h = style->bar_height;
/* filled background bar style */
fill.w = visual_cursor->x+ 0.5*visual_cursor->w - bar.x;
fill.w = visual_cursor->x+ 0.5f*visual_cursor->w - bar.x;
fill.x = bar.x;
fill.y = bar.y;
fill.h = bar.h;