|
|
|
@ -150,16 +150,16 @@ function Options.setOption(key, value)
|
|
|
|
|
end
|
|
|
|
|
g_app.setBackgroundPaneMaxFps(value)
|
|
|
|
|
elseif key == 'foregroundFrameRate' then
|
|
|
|
|
local text = value
|
|
|
|
|
if value <= 0 or value >= 61 then
|
|
|
|
|
text = 'max'
|
|
|
|
|
value = 0
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
if graphicsPanel then
|
|
|
|
|
graphicsPanel:getChildById('foregroundFrameRateLabel'):setText(tr('Interface framerate limit: %s', text))
|
|
|
|
|
end
|
|
|
|
|
g_app.setForegroundPaneMaxFps(value)
|
|
|
|
|
local text = value
|
|
|
|
|
if value <= 0 or value >= 61 then
|
|
|
|
|
text = 'max'
|
|
|
|
|
value = 0
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
if graphicsPanel then
|
|
|
|
|
graphicsPanel:getChildById('foregroundFrameRateLabel'):setText(tr('Interface framerate limit: %s', text))
|
|
|
|
|
end
|
|
|
|
|
g_app.setForegroundPaneMaxFps(value)
|
|
|
|
|
elseif key == 'painterEngine' then
|
|
|
|
|
g_graphics.selectPainterEngine(value)
|
|
|
|
|
end
|
|
|
|
|