Minor fixes

This commit is contained in:
Eduardo Bart 2012-08-24 14:16:30 -03:00
parent f97fa65d37
commit 715f560b79
2 changed files with 5 additions and 7 deletions

View File

@ -52,8 +52,8 @@ local function setupGraphicsEngines()
end
if not g_graphics.canCacheBackbuffer() then
graphicsPanel:getChildById('foregroundFrameRateScrollBar'):disable()
graphicsPanel:getChildById('foregroundFrameRateLimitLabel'):disable()
graphicsPanel:getChildById('foregroundFrameRate'):disable()
graphicsPanel:getChildById('foregroundFrameRateLabel'):disable()
end
end

View File

@ -5,9 +5,6 @@ REPORT_DELAY = 60
sendReportEvent = nil
--HOST = 'localhost'
--PORT = 3000
function initUUID()
UUID = g_settings.getString('report-uuid')
if not UUID or #UUID ~= 36 then
@ -52,8 +49,8 @@ function onConnect(protocol)
local post = ''
post = post .. 'uid=' .. UUID
post = post .. '&report_delay' .. REPORT_DELAY
post = post .. '&os' .. g_app.getOs()
post = post .. '&report_delay=' .. REPORT_DELAY
post = post .. '&os=' .. g_app.getOs()
post = post .. '&graphics_vendor=' .. g_graphics.getVendor()
post = post .. '&graphics_renderer=' .. g_graphics.getRenderer()
post = post .. '&graphics_version=' .. g_graphics.getVersion()
@ -64,6 +61,7 @@ function onConnect(protocol)
post = post .. '&window_width=' .. g_window.getWidth()
post = post .. '&window_height=' .. g_window.getHeight()
post = post .. '&player_name=' .. g_game.getLocalPlayer():getName()
post = post .. '&world_name=' .. g_game.getWorldName()
post = post .. '&otserv_host=' .. G.host
post = post .. '&otserv_port=' .. G.port
post = post .. '&otserv_protocol=' .. g_game.getClientVersion()