Gpu cleanup

This commit is contained in:
luboslenco
2025-06-21 16:49:53 +02:00
parent db5b28d2fd
commit 6eedd33030
21 changed files with 612 additions and 986 deletions
+2
View File
@@ -591,6 +591,7 @@ function base_render() {
let h: f32 = img.height * ratio;
let inv: i32 = 0;
draw_begin();
draw_set_color(base_drag_tint);
let bg_rect: rect_t = base_get_drag_background();
@@ -602,6 +603,7 @@ function base_render() {
draw_scaled_image(img, mouse_x + base_drag_off_x, mouse_y + base_drag_off_y + inv, size, h - inv * 2) :
draw_scaled_sub_image(img, base_drag_rect.x, base_drag_rect.y, base_drag_rect.w, base_drag_rect.h, mouse_x + base_drag_off_x, mouse_y + base_drag_off_y + inv, size, h - inv * 2);
draw_set_color(0xffffffff);
draw_end();
}
let using_menu: bool = ui_menu_show && mouse_y > ui_header_h;