Skip to content
Snippets Groups Projects
Commit 44a1d0c1 authored by SmallJoker's avatar SmallJoker Committed by BlockMen
Browse files

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
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment