paint: cleanup

This commit is contained in:
luboslenco
2026-06-08 15:35:04 +02:00
parent c3623b12f5
commit facadc840d
37 changed files with 345 additions and 345 deletions
+6 -6
View File
@@ -124,11 +124,11 @@ void tab_console_draw(ui_handle_t *htab) {
ui_end_sticky();
draw_font_t *_font = g_ui->ops->font;
i32 _font_size = g_ui->font_size;
i32 _element_offset = g_ui->ops->theme->ELEMENT_OFFSET;
g_ui->ops->theme->ELEMENT_OFFSET = 0;
draw_font_t *f = data_get_font("font_mono.ttf");
draw_font_t *_font = g_font;
i32 _font_size = g_ui->font_size;
i32 _element_offset = g_theme->ELEMENT_OFFSET;
g_theme->ELEMENT_OFFSET = 0;
draw_font_t *f = data_get_font("font_mono.ttf");
ui_set_font(g_ui, f);
g_ui->font_size = math_floor(15 * UI_SCALE());
for (i32 i = 0; i < console_last_traces->length; ++i) {
@@ -167,7 +167,7 @@ void tab_console_draw(ui_handle_t *htab) {
}
}
g_ui->ops->theme->ELEMENT_OFFSET = _element_offset;
g_theme->ELEMENT_OFFSET = _element_offset;
row = f32_array_create_from_raw(
(f32[]){