summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorAlexis211 <alexis211@gmail.com>2009-10-17 18:34:38 +0200
committerAlexis211 <alexis211@gmail.com>2009-10-17 18:34:38 +0200
commite35e95188674ae4802df2a511825218253d01d2c (patch)
tree5b27ea3ca4bd25fdd02c23ff1a5af9cfb2b63019 /Source
parentae49f59cc96e4ff3709c857b848132e82e6e0b14 (diff)
downloadMelon-e35e95188674ae4802df2a511825218253d01d2c.tar.gz
Melon-e35e95188674ae4802df2a511825218253d01d2c.zip
nothing
Diffstat (limited to 'Source')
-rw-r--r--Source/Kernel/VTManager/SimpleVT.class.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Kernel/VTManager/SimpleVT.class.cpp b/Source/Kernel/VTManager/SimpleVT.class.cpp
index 9639d50..89391b2 100644
--- a/Source/Kernel/VTManager/SimpleVT.class.cpp
+++ b/Source/Kernel/VTManager/SimpleVT.class.cpp
@@ -82,6 +82,7 @@ void SimpleVT::scroll() {
}
void SimpleVT::updateCursor() {
+ if (!m_mapped) return;
Disp::moveCursor(m_csrlin + m_maprow, m_csrcol + m_mapcol);
}
@@ -126,7 +127,7 @@ void SimpleVT::put(WChar c, bool updatecsr) {
scroll();
m_csrlin--;
}
- if (updatecsr) updateCursor();
+ if (updatecsr && m_mapped) updateCursor();
}
void SimpleVT::hexDump(u8int *ptr, u32int sz, bool addnl) {