[openfirmware] [commit] r2751 - cpu/x86/pc/olpc

repository service svn at openfirmware.info
Thu Dec 8 13:43:30 CET 2011


Author: wmb
Date: Thu Dec  8 13:43:29 2011
New Revision: 2751
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/2751

Log:
Display selftest - auto-adapt to different screen resolutions.

Modified:
   cpu/x86/pc/olpc/disptest.fth

Modified: cpu/x86/pc/olpc/disptest.fth
==============================================================================
--- cpu/x86/pc/olpc/disptest.fth	Thu Dec  8 13:43:24 2011	(r2750)
+++ cpu/x86/pc/olpc/disptest.fth	Thu Dec  8 13:43:29 2011	(r2751)
@@ -20,13 +20,15 @@
 ;
 : .horizontal-bars16  ( -- )
    dimensions				( width height )
+   dup d# 16 / to bar-int		( height width )
    0  ?do				( width )
       i test-color16 0 i 3 pick bar-int fill-rect
    bar-int +loop  drop
 ;
 : .vertical-bars16  ( -- )
-   dimensions				( width height )
-   swap 0  ?do				( height )
+   dimensions swap			( height width )
+   dup d# 16 / to bar-int		( height width )
+   0  ?do				( height )
       i test-color16 i 0 bar-int 4 pick fill-rect
    bar-int +loop  drop
 ;



More information about the openfirmware mailing list