MCPcopy Create free account
hub / github.com/VirtualGL/virtualgl / getVisual

Function getVisual

server/faker-egl.cpp:92–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90
91
92static XVisualInfo *getVisual(Display *dpy, int screen, int depth, int c_class)
93{
94 XVisualInfo vtemp; int nv = 0;
95
96 if(!dpy) return NULL;
97
98 vtemp.depth = depth;
99 vtemp.c_class = c_class;
100 vtemp.screen = screen;
101
102 return XGetVisualInfo(dpy,
103 VisualDepthMask | VisualClassMask | VisualScreenMask, &vtemp, &nv);
104}
105
106
107static XVisualInfo *getVisualFromConfig(faker::EGLXDisplay *eglxdpy,

Callers 1

getVisualFromConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected