[AD] X11 desktop_color_depth()

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


Can someone tell me what's going on here?  It looks very wrong to me,
at least by the current definition of desktop_color_depth.

/* _xwin_sysdrv_desktop_color_depth:
 *  Returns the current desktop color depth.
 */
static int _xwin_sysdrv_desktop_color_depth(void)
{
   if (_xwin.window_depth <= 8)
      return 8;
   else if (_xwin.window_depth <= 16)
      return 16;
   else
      return 32;
}



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