From 6ec4b3d31080f90393e72989d559cfb76eff6f9d Mon Sep 17 00:00:00 2001 From: Alexis211 Date: Sat, 17 Oct 2009 18:30:09 +0200 Subject: Nothing, really --- Source/Kernel/Makefile | 2 +- Source/Kernel/VTManager/SimpleVT.class.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'Source') diff --git a/Source/Kernel/Makefile b/Source/Kernel/Makefile index 118ea29..56754d0 100644 --- a/Source/Kernel/Makefile +++ b/Source/Kernel/Makefile @@ -5,7 +5,7 @@ CXX = g++ LD = ld LDFLAGS = -T Link.ld -Map Map.txt --oformat=elf32-i386 CFLAGS = -nostdlib -nostartfiles -nodefaultlibs -fno-builtin -fno-stack-protector -Wall -Wextra -Werror -I . -CXXFLAGS = -nostartfiles -nostdlib -fno-exceptions -fno-rtti -I . -Wall -Werror -Wno-write-strings -funsigned-char -D THIS_IS_MELON -D RANDOM_SEED=1`date +%N`LL -g +CXXFLAGS = -nostartfiles -nostdlib -fno-exceptions -fno-rtti -I . -Wall -Werror -Wno-write-strings -funsigned-char -D THIS_IS_MELON -D RANDOM_SEED=1`date +%N`LL ASM = nasm ASMFLAGS = -f elf 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) { -- cgit v1.2.3