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

Method checkResize

server/VirtualWin.cpp:194–208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192
193
194void VirtualWin::checkResize(void)
195{
196 if(eventdpy)
197 {
198 XSync(dpy, False);
199 while(XPending(eventdpy) > 0)
200 {
201 XEvent event;
202 _XNextEvent(eventdpy, &event);
203 if(event.type == ConfigureNotify && event.xconfigure.window == x11Draw
204 && event.xconfigure.width > 0 && event.xconfigure.height > 0)
205 resize(event.xconfigure.width, event.xconfigure.height);
206 }
207 }
208}
209
210
211// Get the current 3D off-screen drawable, but resize the drawable (or change

Callers 1

glViewportFunction · 0.80

Calls 1

resizeFunction · 0.50

Tested by

no test coverage detected