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
44a1d0c1
Commit
44a1d0c1
authored
10 years ago
by
SmallJoker
Committed by
BlockMen
10 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix wrong video_driver setting when changing in mainmenu
Fixes issue with direct3d(8|9)
parent
406ed5ef
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
builtin/mainmenu/tab_settings.lua
+4
-2
4 additions, 2 deletions
builtin/mainmenu/tab_settings.lua
with
4 additions
and
2 deletions
builtin/mainmenu/tab_settings.lua
+
4
−
2
View file @
44a1d0c1
...
...
@@ -122,7 +122,8 @@ local function formspec(tabview, name, tabdata)
end
video_driver_string
=
video_driver_string
..
video_drivers
[
i
]
if
current_video_driver
:
lower
()
==
video_drivers
[
i
]:
lower
()
then
local
video_driver
=
string.gsub
(
video_drivers
[
i
],
" "
,
""
)
if
current_video_driver
:
lower
()
==
video_driver
:
lower
()
then
current_video_driver_idx
=
i
end
end
...
...
@@ -317,7 +318,8 @@ local function handle_settings_buttons(this, fields, tabname, tabdata)
ddhandled
=
true
end
if
fields
[
"dd_video_driver"
]
then
core
.
setting_set
(
"video_driver"
,
fields
[
"dd_video_driver"
])
local
video_driver
=
string.gsub
(
fields
[
"dd_video_driver"
],
" "
,
""
)
core
.
setting_set
(
"video_driver"
,
string.lower
(
video_driver
))
ddhandled
=
true
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