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:
parent
be3d1ca710
commit
d4a6b1d29d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue