keep XVisualInfo around in preparation for opengl stuff
This commit is contained in:
parent
5ac5170dec
commit
911d7251f8
2 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue