[OpenBIOS] [PATCHv2 18/20] display.fs: add implementation of fb8-insert-lines.
Mark Cave-Ayland
mark.cave-ayland at ilande.co.uk
Sun May 26 15:02:38 CEST 2013
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland at ilande.co.uk>
---
openbios-devel/forth/device/display.fs | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/openbios-devel/forth/device/display.fs b/openbios-devel/forth/device/display.fs
index 080087c..a4f11b8 100644
--- a/openbios-devel/forth/device/display.fs
+++ b/openbios-devel/forth/device/display.fs
@@ -259,6 +259,14 @@ defer fb8-invertrect
;
: fb8-insert-lines ( n -- )
+ \ numcopy = ( #lines - n )
+ #lines over - char-height *
+ over line# char-height *
+ swap char-height * over +
+ fb8-copy-lines
+
+ char-height * line# char-height *
+ fb8-clear-lines
;
: fb8-delete-lines ( n -- )
--
1.7.10.4
More information about the OpenBIOS
mailing list