@@ -890,7 +890,7 @@ overview(struct nk_context *ctx)
890890 "BOTTOM_CENTER" ,
891891 "BOTTOM_RIGHT"
892892 };
893- static int cur_pos = NK_TOP_LEFT ;
893+ int cur_pos = NK_TOP_LEFT ;
894894
895895 if (!text_initialized ) {
896896 const char text_default [] = "you can customize this!" ;
@@ -902,7 +902,7 @@ overview(struct nk_context *ctx)
902902 bounds = nk_widget_bounds (ctx );
903903 nk_label (ctx , "Hover for custom tooltip (you can customize it below)" , NK_TEXT_LEFT );
904904 if (nk_input_is_mouse_hovering_rect (in , bounds )) {
905- nk_tooltip_offset (ctx , text_buf , cur_pos , offset );
905+ nk_tooltip_offset (ctx , text_buf , ( enum nk_tooltip_pos ) cur_pos , offset );
906906 }
907907 nk_layout_row_dynamic (ctx , 1 , 1 );
908908 nk_rule_horizontal (ctx , nk_white , nk_true );
@@ -1445,11 +1445,11 @@ overview(struct nk_context *ctx)
14451445 nk_layout_row_dynamic (ctx , 20 , 2 );
14461446 for (i = 0 ; i < NK_BUTTON_MAX ; i ++ ) {
14471447 nk_label (ctx , button_names [i ], NK_TEXT_LEFT );
1448- if (nk_input_is_mouse_pressed (in , i ))
1448+ if (nk_input_is_mouse_pressed (in , ( enum nk_buttons ) i ))
14491449 nk_label (ctx , "Pressed" , NK_TEXT_LEFT );
1450- else if (nk_input_is_mouse_down (in , i ))
1450+ else if (nk_input_is_mouse_down (in , ( enum nk_buttons ) i ))
14511451 nk_label (ctx , "Down" , NK_TEXT_LEFT );
1452- else if (nk_input_is_mouse_released (in , i ))
1452+ else if (nk_input_is_mouse_released (in , ( enum nk_buttons ) i ))
14531453 nk_label (ctx , "Released" , NK_TEXT_LEFT );
14541454 else
14551455 nk_label (ctx , "Up" , NK_TEXT_LEFT );
0 commit comments