Re: [AD] fbcon bug in current CVS

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


> I posted this on a.cc but got no response. Someone suggested I post it
> here:

Yes, this is the right place.

> 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.

Yes, this is a new feature in the 4.1.x series :-)

> *** /tmp/fbcon.c    2004-02-05 18:59:57.000000000 +0000
> --- /tmp/fbcon.c2264b_0    2004-02-05 18:59:57.000000000 +0000
> ***************
> *** 271,277 ****
>
>      gfx_fbcon.vid_mem = fix_info.smem_len;
>
> !    stride = fix_info.line_length * BYTES_PER_PIXEL(color_depth);
>      v_w = my_mode.xres_virtual;
>      v_h = my_mode.yres_virtual;
>      p = fbaddr;
> --- 271,277 ----
>
>      gfx_fbcon.vid_mem = fix_info.smem_len;
>
> !    stride = my_mode.xres_virtual * BYTES_PER_PIXEL(color_depth);
>      v_w = my_mode.xres_virtual;
>      v_h = my_mode.yres_virtual;
>      p = fbaddr;

This is most likely the problem.  Could you dump the value of 
fix_info.line_length and my_mode.xres_virtual for your gfx card?

Thanks in advance.

-- 
Eric Botcazou




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