| 125 | // called |
| 126 | |
| 127 | void 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 |
no test coverage detected