Package: gfxboot-examples
Version: 4.2.2-1.2-1
Severity: minor
Tags: patch

I noticed that the text attribute definition is missing in the first gfxboot example.
The attached patch fixes this issue.

-- System Information:
Debian Release: 6.0.5
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-0.bpo.2-686-pae (SMP w/4 CPU cores)
Locale: LANG=de_CH.UTF-8, LC_CTYPE=de_CH.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages gfxboot-examples depends on:
ii gfxboot 4.2.2-2 tool to test and create graphical

Versions of packages gfxboot-examples recommends:
ii gfxboot-dev 4.2.2-2 tool to test and create graphical

gfxboot-examples suggests no packages.

-- no debconf information

--- example_01.bc.orig	2012-07-29 18:52:26.000000000 +0000
+++ example_01.bc	2012-07-29 18:53:04.000000000 +0000
@@ -45,8 +45,28 @@
 /clearscreen {
   % text screen starts at 0xb8000, two bytes per char (value + attribute)
   % typical size: 25 x 80
-  % write spaces + attribute 7 (= light gray on black)
+  % attribute = background color (4 bit) + foreground color (4 bit)
+  % color definitions:
+  % <value> = (r,g,b) <name>
+  % 0 = (  0,   0,   0) black
+  % 1 = (  0,   0, 168) dark blue
+  % 2 = (  0, 168,   0) dark green
+  % 3 = (  0, 168, 168) dark cyan
+  % 4 = (168,   0,   0) dark red
+  % 5 = (168,   0, 168) dark magenta
+  % 6 = (168,  87,   0) brown
+  % 7 = (168, 168, 168) light gray
+  % 8 = ( 87,  87,  87) dark gray
+  % 9 = ( 87,  87, 255) dodger blue
+  % A = ( 87, 255,  87) screaming green
+  % B = ( 87, 255, 255) aquamarine
+  % C = (255,  87,  87) persimmon
+  % D = (255,  87, 255) pink flamingo
+  % E = (255, 255,  87) yellow
+  % F = (255, 255, 255) white
+
   0xb8000 2 0xb8000 160 25 mul add 1 sub {
+    % use value=0x20 (SPACE) and attribute=0x07 (light gray on black)
     cvp 0x0720 putword
   } for
 } def

Reply via email to