diff options
author | kilbith <jeanpatrick.guerrero@gmail.com> | 2015-01-15 20:17:54 +0100 |
---|---|---|
committer | sapier <Sapier at GMX dot net> | 2015-01-15 20:26:05 +0100 |
commit | eb6b6ff333dc23143c7ea82b2da0862640521110 (patch) | |
tree | f771dd421d89c8ee3997b395486c2032b68620b9 /builtin | |
parent | 516f1bcd1625d41c33ad2056220db072349c52c9 (diff) | |
download | minetest-eb6b6ff333dc23143c7ea82b2da0862640521110.tar.gz minetest-eb6b6ff333dc23143c7ea82b2da0862640521110.tar.bz2 minetest-eb6b6ff333dc23143c7ea82b2da0862640521110.zip |
Add missing return value for filter/mipmap dropdown in mainmenu
Diffstat (limited to 'builtin')
-rw-r--r-- | builtin/mainmenu/tab_settings.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/builtin/mainmenu/tab_settings.lua b/builtin/mainmenu/tab_settings.lua index bc27da87e..44e82c2eb 100644 --- a/builtin/mainmenu/tab_settings.lua +++ b/builtin/mainmenu/tab_settings.lua @@ -343,26 +343,32 @@ local function handle_settings_buttons(this, fields, tabname, tabdata) if fields["dd_filters"] == "No Filter" then core.setting_set("bilinear_filter", "false") core.setting_set("trilinear_filter", "false") + ddhandled = true end if fields["dd_filters"] == "Bilinear Filter" then core.setting_set("bilinear_filter", "true") core.setting_set("trilinear_filter", "false") + ddhandled = true end if fields["dd_filters"] == "Trilinear Filter" then core.setting_set("bilinear_filter", "false") core.setting_set("trilinear_filter", "true") + ddhandled = true end if fields["dd_mipmap"] == "No Mipmap" then core.setting_set("mip_map", "false") core.setting_set("anisotropic_filter", "false") + ddhandled = true end if fields["dd_mipmap"] == "Mipmap" then core.setting_set("mip_map", "true") core.setting_set("anisotropic_filter", "false") + ddhandled = true end if fields["dd_mipmap"] == "Mipmap + Aniso. Filter" then core.setting_set("mip_map", "true") core.setting_set("anisotropic_filter", "true") + ddhandled = true end return ddhandled |