Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
illuna-minetest
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Illuna-Minetest
illuna-minetest
Commits
ffd0ef16
Commit
ffd0ef16
authored
9 years ago
by
Jean-Patrick Guerrero
Committed by
est31
9 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix FSAA dropdown option reset after changing another dropdown option
parent
fa1096ec
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
builtin/mainmenu/tab_settings.lua
+15
-13
15 additions, 13 deletions
builtin/mainmenu/tab_settings.lua
with
15 additions
and
13 deletions
builtin/mainmenu/tab_settings.lua
+
15
−
13
View file @
ffd0ef16
...
...
@@ -68,9 +68,9 @@ local dd_antialiasing_labels = {
}
local
antialiasing
=
{
{
dd_antialiasing_labels
[
1
]
..
","
..
dd_antialiasing_labels
[
2
]
..
","
..
dd_antialiasing_labels
[
3
]
..
","
..
dd_antialiasing_labels
[
4
]},
{
"0"
,
"2"
,
"4"
,
"8"
}
{
dd_antialiasing_labels
[
1
]
..
","
..
dd_antialiasing_labels
[
2
]
..
","
..
dd_antialiasing_labels
[
3
]
..
","
..
dd_antialiasing_labels
[
4
]},
{
"0"
,
"2"
,
"4"
,
"8"
}
}
local
function
getFilterSettingIndex
()
...
...
@@ -95,7 +95,7 @@ end
local
function
getAntialiasingSettingIndex
()
local
antialiasing_setting
=
core
.
setting_get
(
"fsaa"
)
for
i
=
1
,
#
(
antialiasing
[
2
])
do
for
i
=
1
,
#
(
antialiasing
[
2
])
do
if
antialiasing_setting
==
antialiasing
[
2
][
i
]
then
return
i
end
...
...
@@ -104,13 +104,12 @@ local function getAntialiasingSettingIndex()
end
local
function
antialiasing_fname_to_name
(
fname
)
for
i
=
1
,
#
(
dd_antialiasing_labels
)
do
if
fname
==
dd_antialiasing_labels
[
i
]
then
return
antialiasing
[
2
][
i
]
end
end
return
"0"
for
i
=
1
,
#
(
dd_antialiasing_labels
)
do
if
fname
==
dd_antialiasing_labels
[
i
]
then
return
antialiasing
[
2
][
i
]
end
end
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
core
.
setting_set
(
"fsaa"
,
antialiasing_fname_to_name
(
fields
[
"dd_antialiasing"
]))
if
fields
[
"dd_antialiasing"
]
then
core
.
setting_set
(
"fsaa"
,
antialiasing_fname_to_name
(
fields
[
"dd_antialiasing"
]))
ddhandled
=
true
end
return
ddhandled
end
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment