| 90 | |
| 91 | |
| 92 | static 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 | |
| 107 | static XVisualInfo *getVisualFromConfig(faker::EGLXDisplay *eglxdpy, |
no outgoing calls
no test coverage detected