Fix FSAA dropdown option reset after changing another dropdown option

This commit is contained in:
jp 2015-07-25 12:40:01 +02:00
parent a8c5841140
commit c4d4d6e62b
1 changed files with 15 additions and 13 deletions

View File

@ -109,8 +109,7 @@ local function antialiasing_fname_to_name(fname)
return antialiasing[2][i]
end
end
return "0"
return 0
end
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")
ddhandled = true
end
if fields["dd_antialiasing"] then
core.setting_set("fsaa",
antialiasing_fname_to_name(fields["dd_antialiasing"]))
ddhandled = true
end
return ddhandled
end