summaryrefslogtreecommitdiffstats
path: root/rsnix/src/vt.rs
diff options
context:
space:
mode:
Diffstat (limited to 'rsnix/src/vt.rs')
-rw-r--r--rsnix/src/vt.rs9
1 files changed, 2 insertions, 7 deletions
diff --git a/rsnix/src/vt.rs b/rsnix/src/vt.rs
index c5fc5fd..4ef568d 100644
--- a/rsnix/src/vt.rs
+++ b/rsnix/src/vt.rs
@@ -458,13 +458,7 @@ fn put_byte(b: u8) {
458} 458}
459 459
460fn param(i: usize, default: usize) -> usize { 460fn param(i: usize, default: usize) -> usize {
461 unsafe { 461 unsafe { if i < NPARAMS { PARAMS[i] } else { default } }
462 if i < NPARAMS {
463 PARAMS[i]
464 } else {
465 default
466 }
467 }
468} 462}
469 463
470/// Place a printable glyph at the cursor and advance (wrapping/scrolling). 464/// Place a printable glyph at the cursor and advance (wrapping/scrolling).
@@ -694,6 +688,7 @@ pub fn sync_scroll() {
694 PENDING_SCROLLS = 0; 688 PENDING_SCROLLS = 0;
695 LAST_SYNC_TICK = crate::interrupts::TICKS.load(core::sync::atomic::Ordering::Relaxed); 689 LAST_SYNC_TICK = crate::interrupts::TICKS.load(core::sync::atomic::Ordering::Relaxed);
696 flush(); 690 flush();
691 gop::call_scroll_hook();
697 } 692 }
698} 693}
699 694