mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-12 16:15:20 +02:00
Fix FSAA dropdown option reset after changing another dropdown option
This commit is contained in:
committed by
est31
parent
fa1096ec49
commit
ffd0ef16c4
@@ -109,8 +109,7 @@ local function antialiasing_fname_to_name(fname)
|
|||||||
return antialiasing[2][i]
|
return antialiasing[2][i]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
return 0
|
||||||
return "0"
|
|
||||||
end
|
end
|
||||||
|
|
||||||
local function dlg_confirm_reset_formspec(data)
|
local function dlg_confirm_reset_formspec(data)
|
||||||
@@ -418,8 +417,11 @@ local function handle_settings_buttons(this, fields, tabname, tabdata)
|
|||||||
core.setting_set("anisotropic_filter", "true")
|
core.setting_set("anisotropic_filter", "true")
|
||||||
ddhandled = true
|
ddhandled = true
|
||||||
end
|
end
|
||||||
|
if fields["dd_antialiasing"] then
|
||||||
core.setting_set("fsaa",
|
core.setting_set("fsaa",
|
||||||
antialiasing_fname_to_name(fields["dd_antialiasing"]))
|
antialiasing_fname_to_name(fields["dd_antialiasing"]))
|
||||||
|
ddhandled = true
|
||||||
|
end
|
||||||
|
|
||||||
return ddhandled
|
return ddhandled
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user