paint: move filter textures option to config

This commit is contained in:
luboslenco
2026-06-09 18:04:19 +02:00
parent e16e540d23
commit 1cd4467e67
6 changed files with 14 additions and 9 deletions
+7
View File
@@ -752,6 +752,13 @@ void box_preferences_viewport_tab() {
if (ui_icon_button("", ICON_FOLDER_OPEN, UI_ALIGN_CENTER)) {
ui_files_show("cube", false, false, &box_preferences_lut_picked);
}
ui_handle_t *filter_handle = ui_handle(__ID__);
filter_handle->b = g_config->texture_filter;
g_config->texture_filter = ui_check(filter_handle, string(" %s", tr("Filter Textures")), "");
if (filter_handle->changed) {
gpu_use_linear_sampling(g_config->texture_filter);
}
}
// ██╗ ██╗███████╗██╗ ██╗███╗ ███╗ █████╗ ██████╗