Skip to content

Commit a8c5841

Browse files
kilbithnerzhul
authored andcommittedJul 25, 2015
Remove drivers dropdown in the settings tab
1 parent 288302a commit a8c5841

File tree

1 file changed

+0
-40
lines changed

1 file changed

+0
-40
lines changed
 

Diff for: ‎builtin/mainmenu/tab_settings.lua

-40
Original file line numberDiff line numberDiff line change
@@ -113,18 +113,6 @@ local function antialiasing_fname_to_name(fname)
113113
return "0"
114114
end
115115

116-
local function video_driver_fname_to_name(selected_driver)
117-
local video_drivers = core.get_video_drivers()
118-
119-
for i=1, #video_drivers do
120-
if selected_driver == video_drivers[i].friendly_name then
121-
return video_drivers[i].name:lower()
122-
end
123-
end
124-
125-
return ""
126-
end
127-
128116
local function dlg_confirm_reset_formspec(data)
129117
local retval =
130118
"size[8,3]" ..
@@ -213,23 +201,6 @@ local function scrollbar_to_gui_scale(value)
213201
end
214202

215203
local function formspec(tabview, name, tabdata)
216-
local video_drivers = core.get_video_drivers()
217-
local current_video_driver = core.setting_get("video_driver"):lower()
218-
219-
local driver_formspec_string = ""
220-
local driver_current_idx = 0
221-
222-
for i=2, #video_drivers do
223-
driver_formspec_string = driver_formspec_string .. video_drivers[i].friendly_name
224-
if i ~= #video_drivers then
225-
driver_formspec_string = driver_formspec_string .. ","
226-
end
227-
228-
if current_video_driver == video_drivers[i].name:lower() then
229-
driver_current_idx = i - 1
230-
end
231-
end
232-
233204
local tab_string =
234205
"box[0,0;3.5,4.0;#999999]" ..
235206
"checkbox[0.25,0;cb_smooth_lighting;".. fgettext("Smooth Lighting")
@@ -247,7 +218,6 @@ local function formspec(tabview, name, tabdata)
247218
"dropdown[0.25,3.2;3.3;dd_leaves_style;" .. leaves_style[1][1] .. ";"
248219
.. getLeavesStyleSettingIndex() .. "]" ..
249220
"box[3.75,0;3.75,3.45;#999999]" ..
250-
"box[3.75,0;3.75,4.7;#999999]" ..
251221
"label[3.85,0.1;".. fgettext("Texturing:") .. "]"..
252222
"dropdown[3.85,0.55;3.85;dd_filters;" .. filters[1][1] .. ";"
253223
.. getFilterSettingIndex() .. "]" ..
@@ -256,11 +226,6 @@ local function formspec(tabview, name, tabdata)
256226
"label[3.85,2.15;".. fgettext("Antialiasing:") .. "]"..
257227
"dropdown[3.85,2.6;3.85;dd_antialiasing;" .. antialiasing[1][1] .. ";"
258228
.. getAntialiasingSettingIndex() .. "]" ..
259-
"label[3.85,3.4;".. fgettext("Rendering:") .. "]"..
260-
"dropdown[3.85,3.85;3.85;dd_video_driver;"
261-
.. driver_formspec_string .. ";" .. driver_current_idx .. "]" ..
262-
"tooltip[dd_video_driver;" ..
263-
fgettext("Restart minetest for driver change to take effect") .. "]" ..
264229
"box[7.75,0;4,4;#999999]" ..
265230
"checkbox[8,0;cb_shaders;".. fgettext("Shaders") .. ";"
266231
.. dump(core.setting_getbool("enable_shaders")) .. "]"
@@ -423,11 +388,6 @@ local function handle_settings_buttons(this, fields, tabname, tabdata)
423388
core.setting_set("leaves_style", leaves_style[2][1])
424389
ddhandled = true
425390
end
426-
if fields["dd_video_driver"] then
427-
core.setting_set("video_driver",
428-
video_driver_fname_to_name(fields["dd_video_driver"]))
429-
ddhandled = true
430-
end
431391
if fields["dd_filters"] == dd_filter_labels[1] then
432392
core.setting_set("bilinear_filter", "false")
433393
core.setting_set("trilinear_filter", "false")

0 commit comments

Comments
 (0)
Please sign in to comment.