]> Dogcows Code - chaz/openbox/commitdiff
keep XVisualInfo around in preparation for opengl stuff
authorDerek Foreman <manmower@gmail.com>
Thu, 22 May 2003 19:48:11 +0000 (19:48 +0000)
committerDerek Foreman <manmower@gmail.com>
Thu, 22 May 2003 19:48:11 +0000 (19:48 +0000)
render/render.c
render/render.h

index f8920c25b76845536014144883ba3c0646412813..c556998eef4673f3ee44be3a65f974d1788837a3 100644 (file)
@@ -15,6 +15,8 @@
 #endif
 
 int render_depth;
+XVisualInfo render_visual_info;
+
 Visual *render_visual;
 Colormap render_colormap;
 int render_red_offset = 0, render_green_offset = 0, render_blue_offset = 0;
@@ -59,6 +61,7 @@ void render_startup(void)
         render_visual = vinfo_return[best].visual;
         render_colormap = XCreateColormap(ob_display, ob_root, render_visual,
                                           AllocNone);
+        render_visual_info = vinfo_return[best];
       }
       XFree(vinfo_return);
     }  
index a2bdd2620489bf82eb64ef9602c81e815b30a2a6..100c4a9db04cc460ad48430afdd86410ca24873e 100644 (file)
@@ -142,6 +142,7 @@ typedef struct Appearance {
 } Appearance;
 
 extern Visual *render_visual;
+extern XVisualInfo render_visual_info;
 extern int render_depth;
 extern Colormap render_colormap;
 
This page took 0.026801 seconds and 4 git commands to generate.