fill out new fields needed for color depth increase
authorDerek Foreman <manmower@gmail.com>
Tue, 17 Jun 2003 00:30:36 +0000 (00:30 +0000)
committerDerek Foreman <manmower@gmail.com>
Tue, 17 Jun 2003 00:30:36 +0000 (00:30 +0000)
call colorInspect function at instance creation time

render2/instance.c

index 5f81b43d3ef95e218a4d69b517a6648b203ba7e8..ea216841832001e74df431c5f30e7c61beb9ab88 100644 (file)
@@ -1,6 +1,7 @@
 #include "instance.h"
 #include "surface.h"
 #include "debug.h"
+#include "color.h"
 #include "glft/glft.h"
 #include <stdlib.h>
 #include <assert.h>
@@ -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),