From: Derek Foreman Date: Tue, 17 Jun 2003 00:30:36 +0000 (+0000) Subject: fill out new fields needed for color depth increase X-Git-Tag: gl-oldtheme~15 X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=05b6acab0900043b83fd4e0e5ca8156dc4cbc6c3;p=dana%2Fopenbox.git fill out new fields needed for color depth increase call colorInspect function at instance creation time --- diff --git a/render2/instance.c b/render2/instance.c index 5f81b43d..ea216841 100644 --- a/render2/instance.c +++ b/render2/instance.c @@ -1,6 +1,7 @@ #include "instance.h" #include "surface.h" #include "debug.h" +#include "color.h" #include "glft/glft.h" #include #include @@ -93,8 +94,13 @@ struct RrInstance *RrInstanceNew(Display *display, int screen) inst->display = display; inst->screen = screen; inst->visinfo = vilist[best]; + inst->depth = vilist[best].depth; + inst->visual = vilist[best].visual; inst->cmap = XCreateColormap(display, RootWindow(display, screen), RrVisual(inst), AllocNone); + + RrColorInspect(inst); + inst->glx_context = glXCreateContext(display, &vilist[best], NULL, True); inst->shape_window = XCreateWindow(display,RootWindow(display, screen),