--- np2/x11/gtk/Attic/gtk_drawmng.c 2003/12/11 15:11:56 1.1 +++ np2/x11/gtk/Attic/gtk_drawmng.c 2004/02/06 16:51:22 1.3 @@ -101,7 +101,7 @@ gtkdrawmng_create(GtkWidget *parent_wind visual->depth); } if (hdl->backsurf == NULL) { - hdl->shared_pixmap = NULL; + hdl->shared_pixmap = FALSE; hdl->backsurf = gdk_pixmap_new(parent_window->window, hdl->vram.width, hdl->vram.height, visual->depth); } @@ -199,7 +199,7 @@ gtkdrawmng_getbpp(GtkWidget *w, GtkWidge case GDK_VISUAL_TRUE_COLOR: case GDK_VISUAL_PSEUDO_COLOR: case GDK_VISUAL_DIRECT_COLOR: - if (visual->depth > 8) { + if (visual->depth >= 8) { break; } /* FALLTHROUGH */