mirror of
https://github.com/gwm17/glfw.git
synced 2024-11-23 02:38:52 -05:00
Fix warning in Nuklear with Clang
This commit is contained in:
parent
9950d8a319
commit
79eaf49ec0
2
deps/nuklear.h
vendored
2
deps/nuklear.h
vendored
|
@ -16869,7 +16869,7 @@ nk_panel_end(struct nk_context *ctx)
|
||||||
if (nk_input_is_mouse_down(in, NK_BUTTON_LEFT) && left_mouse_down && left_mouse_click_in_scaler) {
|
if (nk_input_is_mouse_down(in, NK_BUTTON_LEFT) && left_mouse_down && left_mouse_click_in_scaler) {
|
||||||
float delta_x = in->mouse.delta.x;
|
float delta_x = in->mouse.delta.x;
|
||||||
if (layout->flags & NK_WINDOW_SCALE_LEFT) {
|
if (layout->flags & NK_WINDOW_SCALE_LEFT) {
|
||||||
delta_x =- delta_x;
|
delta_x = -delta_x;
|
||||||
window->bounds.x += in->mouse.delta.x;
|
window->bounds.x += in->mouse.delta.x;
|
||||||
}
|
}
|
||||||
window->bounds.w = NK_MAX(window_size.x, window->bounds.w + delta_x);
|
window->bounds.w = NK_MAX(window_size.x, window->bounds.w + delta_x);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user