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

Method resize

server/VirtualWin.cpp:127–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125// called
126
127void VirtualWin::resize(int width, int height)
128{
129 CriticalSection::SafeLock l(mutex);
130 if(deletedByWM) THROW("Window has been deleted by window manager");
131 if(width == 0 && oglDraw) width = oglDraw->getWidth();
132 if(height == 0 && oglDraw) height = oglDraw->getHeight();
133 if(oglDraw && oglDraw->getWidth() == width && oglDraw->getHeight() == height)
134 {
135 newWidth = newHeight = -1;
136 return;
137 }
138 newWidth = width; newHeight = height;
139}
140
141
142// The FB config change doesn't actually occur until the next time

Callers 6

handleXCBEventFunction · 0.45
XGetGeometryFunction · 0.45
handleEventFunction · 0.45
XConfigureWindowFunction · 0.45
XMoveResizeWindowFunction · 0.45
XResizeWindowFunction · 0.45

Calls 2

getWidthMethod · 0.45
getHeightMethod · 0.45

Tested by

no test coverage detected