This commit is contained in:
Igor Timofeev 2017-04-23 00:31:39 +03:00
parent 7e32fef7ba
commit a72cd40cf0
3 changed files with 60 additions and 35 deletions

View File

@ -613,7 +613,7 @@ local function removeWindowsLineEndings(text)
end
local function changeResolution(width, height)
buffer.changeResolution(width, height)
buffer.setResolution(width, height)
calculateSizes()
mainWindow:draw()
buffer.draw()
@ -837,17 +837,17 @@ local function continue()
if coroutine.status(scriptCoroutine) == "dead" then
MineOSCore.waitForPressingAnyKey()
hideErrorContainer()
buffer.changeResolution(oldResolutionX, oldResolutionY); mainWindow:draw(); buffer.draw(true)
buffer.setResolution(oldResolutionX, oldResolutionY); mainWindow:draw(); buffer.draw(true)
else
-- Тест на пидора, мало ли у чувака в проге тоже есть yield
if _G.MineCodeIDEDebugInfo then
buffer.changeResolution(oldResolutionX, oldResolutionY); mainWindow:draw(); buffer.draw(true)
buffer.setResolution(oldResolutionX, oldResolutionY); mainWindow:draw(); buffer.draw(true)
gotoLine(_G.MineCodeIDEDebugInfo.line)
showBreakpointMessage(_G.MineCodeIDEDebugInfo.variables)
end
end
else
buffer.changeResolution(oldResolutionX, oldResolutionY); mainWindow:draw(); buffer.draw(true)
buffer.setResolution(oldResolutionX, oldResolutionY); mainWindow:draw(); buffer.draw(true)
showErrorContainer(debug.traceback(scriptCoroutine, coroutineResumeReason))
end
end

File diff suppressed because one or more lines are too long

View File

@ -75,7 +75,7 @@ function buffer.start()
end
-- Изменение разрешения экрана и пересоздание массивов буфера
function buffer.changeResolution(width, height)
function buffer.setResolution(width, height)
gpu.setResolution(width, height)
buffer.flush(width, height)
end