paint: cleanup

This commit is contained in:
luboslenco
2026-06-05 18:55:53 +02:00
parent 5a677e03c4
commit 2d140020b9
17 changed files with 208 additions and 239 deletions
+2 -7
View File
@@ -732,15 +732,10 @@ void tab_layers_draw_layer_context_menu_draw() {
tr("Custom"),
},
5);
ui_handle_t *h = ui_handle(__ID__);
bool changed_last = h->changed;
h->i = base_res_handle->i;
base_res_handle->i = ui_combo(h, ar, tr("Resolution"), true, UI_ALIGN_LEFT, true);
if (h->changed) {
ui_combo(base_res_handle, ar, tr("Resolution"), true, UI_ALIGN_LEFT, true);
if (base_res_handle->changed) {
ui_menu_keep_open = true;
config_set_texture_res(base_res_handle->i);
}
if (changed_last && !h->changed) {
layers_on_resized();
}