aboutsummaryrefslogtreecommitdiffhomepage
path: root/desktop/sources/scripts/cursor.js
diff options
context:
space:
mode:
authorDevine Lu Linvega <[email protected]>2019-06-16 14:03:05 +0900
committerDevine Lu Linvega <[email protected]>2019-06-16 14:03:07 +0900
commit3feaa524e49c9960c4d6dfef725e5243c3bafffa (patch)
tree84069cbf4eef23f1801671230e8bc7765c2507e0 /desktop/sources/scripts/cursor.js
parent945f5ae9912a4c12d1eda287cca9b462126cea52 (diff)
downloadOrca-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.js4
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()
}