From: Derek Foreman Date: Thu, 22 May 2003 19:48:11 +0000 (+0000) Subject: keep XVisualInfo around in preparation for opengl stuff X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=911d7251f83f6e877885518d806f3f29ce9ce177;p=chaz%2Fopenbox keep XVisualInfo around in preparation for opengl stuff --- diff --git a/render/render.c b/render/render.c index f8920c25..c556998e 100644 --- a/render/render.c +++ b/render/render.c @@ -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); } diff --git a/render/render.h b/render/render.h index a2bdd262..100c4a9d 100644 --- a/render/render.h +++ b/render/render.h @@ -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;