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
@@ -120,10 +120,10 @@ void tab_brushes_draw(ui_handle_t *htab) {
if (g_config->window_scale > 1) {
w += math_floor(g_config->window_scale * 2);
}
ui_fill(-1, -2, w + 3, 2, g_ui->ops->theme->HIGHLIGHT_COL);
ui_fill(-1, w - off, w + 3, 2 + off, g_ui->ops->theme->HIGHLIGHT_COL);
ui_fill(-1, -2, 2, w + 3, g_ui->ops->theme->HIGHLIGHT_COL);
ui_fill(w + 1, -2, 2, w + 4, g_ui->ops->theme->HIGHLIGHT_COL);
ui_fill(-1, -2, w + 3, 2, g_theme->HIGHLIGHT_COL);
ui_fill(-1, w - off, w + 3, 2 + off, g_theme->HIGHLIGHT_COL);
ui_fill(-1, -2, 2, w + 3, g_theme->HIGHLIGHT_COL);
ui_fill(w + 1, -2, 2, w + 4, g_theme->HIGHLIGHT_COL);
}
uix = g_ui->_x;
@@ -131,7 +131,7 @@ void tab_brushes_draw(ui_handle_t *htab) {
i32 tile = UI_SCALE() > 1 ? 100 : 50;
if (base_drag_brush != NULL && tab_brushes_drag_pos == i) {
ui_fill(-1, -2, 2, imgw_val + 4, g_ui->ops->theme->HIGHLIGHT_COL);
ui_fill(-1, -2, 2, imgw_val + 4, g_theme->HIGHLIGHT_COL);
}
ui_state_t state = g_project->_->brushes->buffer[i]->preview_ready
@@ -199,7 +199,7 @@ void tab_brushes_draw(ui_handle_t *htab) {
if (base_drag_brush != NULL && tab_brushes_drag_pos == g_project->_->brushes->length) {
g_ui->_x = uix;
g_ui->_y = uiy;
ui_fill(imgw_val + 1, -2, 2, imgw_val + 4, g_ui->ops->theme->HIGHLIGHT_COL);
ui_fill(imgw_val + 1, -2, 2, imgw_val + 4, g_theme->HIGHLIGHT_COL);
}
if (!drag_pos_set) {