[prev in list] [next in list] [prev in thread] [next in thread]
List: openbios
Subject: [OpenBIOS] [PATCH 09/16] display.fs: pass the colour depth in bytes to the Forth terminal routines.
From: Mark Cave-Ayland <mark.cave-ayland () ilande ! co ! uk>
Date: 2013-03-10 16:50:39
Message-ID: 1362934246-14027-10-git-send-email-mark.cave-ayland () ilande ! co ! uk
[Download RAW message or body]
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
---
openbios-devel/forth/device/display.fs | 2 ++
openbios-devel/libopenbios/video_common.c | 2 ++
2 files changed, 4 insertions(+)
diff --git a/openbios-devel/forth/device/display.fs b/openbios-devel/forth/device/display.fs
index 0df7165..fd4ae78 100644
--- a/openbios-devel/forth/device/display.fs
+++ b/openbios-devel/forth/device/display.fs
@@ -44,6 +44,8 @@ hex
0 value foreground-color
0 value background-color
+0 value depth-bytes
+
\ internal values read from QEMU firmware interface
0 value qemu-video-addr
0 value qemu-video-height
diff --git a/openbios-devel/libopenbios/video_common.c b/openbios-devel/libopenbios/video_common.c
index f33286b..71cca24 100644
--- a/openbios-devel/libopenbios/video_common.c
+++ b/openbios-devel/libopenbios/video_common.c
@@ -282,6 +282,8 @@ init_video( unsigned long fb, int width, int height, int depth, int rb )
feval("to frame-buffer-adr");
/* Set global variables ready for fb8-install */
+ PUSH((video.fb.depth + 1) >> 3);
+ feval("to depth-bytes");
PUSH((ucell)fontdata);
feval("to (romfont)");
PUSH(FONT_HEIGHT);
--
1.7.10.4
--
OpenBIOS http://openbios.org/
Mailinglist: http://lists.openbios.org/mailman/listinfo
Free your System - May the Forth be with you
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic