Re: [AD] fbcon bug in current CVS

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


> I've got the latest CVS version. If I run the allegro test program from
> a console (not from within X) and choose the autodetect driver, it
> chooses fbcon, but I only see the top half of the screen stetched out
> vertically, with blank lines in between.

I should have read the manual (well, the header file) more carefully...

Fixed thusly.  Applied to trunk and branch.

-- 
Eric Botcazou
Index: src/linux/fbcon.c
===================================================================
RCS file: /cvsroot/alleg/allegro/src/linux/fbcon.c,v
retrieving revision 1.28
diff -u -p -r1.28 fbcon.c
--- src/linux/fbcon.c	7 Oct 2003 14:45:16 -0000	1.28
+++ src/linux/fbcon.c	14 Feb 2004 20:14:13 -0000
@@ -271,7 +271,7 @@ static BITMAP *fb_init(int w, int h, int
 
    gfx_fbcon.vid_mem = fix_info.smem_len;
 
-   stride = fix_info.line_length * BYTES_PER_PIXEL(color_depth);
+   stride = fix_info.line_length;
    v_w = my_mode.xres_virtual;
    v_h = my_mode.yres_virtual;
    p = fbaddr;


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/