mirror of
https://github.com/IgorTimofeev/MineOS.git
synced 2026-01-11 05:32:38 +01:00
aefaef
This commit is contained in:
parent
7e32fef7ba
commit
a72cd40cf0
@ -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
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user