fbuffer: Use a smaller cursor

Drawing the cursor in the frame buffer memory is a very, very
slow operation. So let's simply switch to a "underscore" cursor
instead of the full block cursor to save some precious cycles.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
This commit is contained in:
Thomas Huth 2015-07-30 14:56:33 +02:00 committed by Alexey Kardashevskiy
parent be3d1ca710
commit d4a6b1d29d
1 changed files with 2 additions and 1 deletions

View File

@ -98,7 +98,8 @@ CREATE bitmap-buffer 400 4 * allot
: fb8-toggle-cursor ( -- )
line# fb8-line2addr column# fb8-columns2bytes +
char-height 0 ?DO
char-height 2 - screen-width screen-depth * * +
2 0 ?DO
dup char-width screen-depth * invert-region
screen-width screen-depth * +
LOOP drop