[AD] fbcon bug in current CVS

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


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

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.
Exactly the same thing works correctly in 4.0.3.

If this helps, I've placed a diff at the bottom of this file between 4.0.3 and current. (I removed some differences that can't be the problem, e.g. added ASSERTs)

Pete


*** /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;
***************
*** 483,510 ****

    ret = ioctl(fbfd, FBIOPAN_DISPLAY, &my_mode);

!    if (_wait_for_vsync) {
!       /* On a lot of graphics hardware the scroll registers don't
<snip>(comment)</snip>
!        */
!       fb_vsync();

!     #ifdef FBIOGET_VBLANK
!       if (!vblank_flags)
!     #endif
!          fb_vsync();
!    }

    return (ret) ? -1 : 0;
 }
--- 483,494 ----

    ret = ioctl(fbfd, FBIOPAN_DISPLAY, &my_mode);

!    fb_vsync();

!  #ifdef FBIOGET_VBLANK
!    if (!vblank_flags)
!  #endif
!       fb_vsync();

    return (ret) ? -1 : 0;
 }
***************





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