paint: cleanup
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user