mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2024-12-13 19:50:31 +00:00
Merge pull request #299 from Wilma456/termbug
Fix Bug with term.setCursorPos
This commit is contained in:
commit
5e3eb2c6a7
@ -243,6 +243,9 @@ function create( parent, nX, nY, nWidth, nHeight, bStartVisible )
|
|||||||
end
|
end
|
||||||
|
|
||||||
function window.setCursorPos( x, y )
|
function window.setCursorPos( x, y )
|
||||||
|
if type( x ) ~= "number" or type( y ) ~= "number" then
|
||||||
|
error( "Expected number, number", 2 )
|
||||||
|
end
|
||||||
nCursorX = math.floor( x )
|
nCursorX = math.floor( x )
|
||||||
nCursorY = math.floor( y )
|
nCursorY = math.floor( y )
|
||||||
if bVisible then
|
if bVisible then
|
||||||
|
Loading…
Reference in New Issue
Block a user