keep XVisualInfo around in preparation for opengl stuff

This commit is contained in:
Derek Foreman 2003-05-22 19:48:11 +00:00
parent 5ac5170dec
commit 911d7251f8
2 changed files with 4 additions and 0 deletions

View 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);
}

View 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;