diff options
author | Devine Lu Linvega <[email protected]> | 2019-06-16 14:03:05 +0900 |
---|---|---|
committer | Devine Lu Linvega <[email protected]> | 2019-06-16 14:03:07 +0900 |
commit | 3feaa524e49c9960c4d6dfef725e5243c3bafffa (patch) | |
tree | 84069cbf4eef23f1801671230e8bc7765c2507e0 /desktop/sources/scripts/cursor.js | |
parent | 945f5ae9912a4c12d1eda287cca9b462126cea52 (diff) | |
download | Orca-3feaa524e49c9960c4d6dfef725e5243c3bafffa.tar.gz Orca-3feaa524e49c9960c4d6dfef725e5243c3bafffa.zip |
Added optional pos to inject and write
Diffstat (limited to 'desktop/sources/scripts/cursor.js')
-rw-r--r-- | desktop/sources/scripts/cursor.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/desktop/sources/scripts/cursor.js b/desktop/sources/scripts/cursor.js index 0de531b..e09c012 100644 --- a/desktop/sources/scripts/cursor.js +++ b/desktop/sources/scripts/cursor.js @@ -33,8 +33,8 @@ export default function Cursor (terminal) { this.scaleTo = function (w, h) { if (isNaN(w) || isNaN(h)) { return } - this.w = clamp(parseInt(w), 0, terminal.orca.w - 1) - this.h = clamp(parseInt(h), 0, terminal.orca.h - 1) + this.w = clamp(parseInt(w), 1, terminal.orca.w - 1) + this.h = clamp(parseInt(h), 1, terminal.orca.h - 1) terminal.update() } |