mirror of
https://github.com/lc-soft/LCUI.git
synced 2026-11-30 16:48:21 +01:00
fix: make window resize conversion explicit
ui_widget_resize() takes floats; passing int values triggered C4244 (int to float) on MSVC, which is fatal under /WX in CI.
This commit is contained in:
+1
-1
@@ -354,7 +354,7 @@ void lcui_window_set_size(lcui_window_t *w, int cw, int ch)
|
||||
ptk_window_set_size(w->ptk, lcui_window_to_px(w->ptk, cw),
|
||||
lcui_window_to_px(w->ptk, ch));
|
||||
if (w->widget) {
|
||||
ui_widget_resize(w->widget, cw, ch);
|
||||
ui_widget_resize(w->widget, (float)cw, (float)ch);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user