[AD] Oddity in src/linux/fbcon.c

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


Here are the odd lines:

static int fb_scroll(int x, int y)
{
   int ret;

   my_mode.xoffset = x;
   my_mode.yoffset = y;

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

   fb_vsync();

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

   return (ret) ? -1 : 0;
}


Note that, if FBIOGET_VBLANK is not defined, fb_vsync() will be invoked 
twice. Is this a thinko?

-- 
Eric Botcazou




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