Re: [AD] X11 desktop_color_depth()

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


On 22 Nov 2001, Michael Bukin <M.A.Bukin@xxxxxxxxxx> wrote:
> In short, 15-bpp can be returned as desktop depth too.

You mean like this?

Index: xsystem.c
===================================================================
RCS file: /cvsroot/alleg/allegro/src/x/xsystem.c,v
retrieving revision 1.19
diff -u -r1.19 xsystem.c
--- xsystem.c   2001/11/24 00:59:23     1.19
+++ xsystem.c   2001/11/24 02:25:18
@@ -360,7 +360,9 @@
 {
    if (_xwin.window_depth <= 8)
       return 8;
-   else if (_xwin.window_depth <= 16)
+   else if (_xwin.window_depth <= 15)
+      return 15;
+   else if (_xwin.window_depth == 16)
       return 16;
    else
       return 32;



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