adaptions for vg3.000
[carveJwlIkooP6JGAAIwe30JlM.git] / skaterift.c
index e88f7e345ae72434520f8b7e9bd13b31c37d9069..c7b8688e4023c6d881ee4eb509e6b1968646b881 100644 (file)
@@ -749,7 +749,7 @@ void vg_gui(void)
       ui_rect screen = { 0, 0, vg.window_x, vg.window_y };
       ui_rect panel = { 0, 0, 1000, 700 };
       ui_rect_center( screen, panel );
-      vg_ui.wants_mouse = 1;
+      ui_capture_mouse( 1 );
 
       ui_fill( panel, ui_colour( k_ui_bg+1 ) );
       ui_outline( panel, 1, ui_colour( k_ui_bg+7 ), 0 );
@@ -761,9 +761,9 @@ void vg_gui(void)
 
    if( k_light_editor )
       imgui_world_light_edit( world_current_instance() );
-
-   vg_ui.tex_bg = gpipeline.fb_main->attachments[0].id;
-   render_fb_inverse_ratio( gpipeline.fb_main, vg_ui.bg_inverse_ratio );
+   
+   g_ui_ctx->tex_bg = gpipeline.fb_main->attachments[0].id;
+   render_fb_inverse_ratio( gpipeline.fb_main, g_ui_ctx->bg_inverse_ratio );
 
    menu_gui();
    player__im_gui();