| 247 | } |
| 248 | |
| 249 | int |
| 250 | GLWindow::currentWidth () |
| 251 | { |
| 252 | int width = 0; |
| 253 | int height = 0; |
| 254 | SDL_GL_GetDrawableSize (window, &width, &height); |
| 255 | if (width <= 0) |
| 256 | SDL_GetWindowSize (window, &width, nullptr); |
| 257 | return width; |
| 258 | } |
| 259 | |
| 260 | int |
| 261 | GLWindow::currentHeight () |
no outgoing calls
no test coverage detected