| 326 | } |
| 327 | |
| 328 | bool IVideo::SetResolution () |
| 329 | { |
| 330 | DFrameBuffer *buff = CreateFrameBuffer(); |
| 331 | |
| 332 | if (buff == NULL) // this cannot really happen |
| 333 | { |
| 334 | return false; |
| 335 | } |
| 336 | |
| 337 | screen = buff; |
| 338 | screen->InitializeState(); |
| 339 | |
| 340 | V_UpdateModeSize(screen->GetWidth(), screen->GetHeight()); |
| 341 | |
| 342 | return true; |
| 343 | } |
| 344 | |
| 345 | // |
| 346 | // V_Init |
no test coverage detected