| 408 | } |
| 409 | |
| 410 | void GuiCanvas::handlePaintEvent(WindowId did) |
| 411 | { |
| 412 | bool canRender = mPlatformWindow->isVisible() && GFX->allowRender() && !GFX->canCurrentlyRender(); |
| 413 | |
| 414 | // Do the screenshot first. |
| 415 | if ( gScreenShot != NULL && gScreenShot->isPending() && canRender ) |
| 416 | gScreenShot->capture( this ); |
| 417 | |
| 418 | // If the video capture is waiting for a canvas, start the capture |
| 419 | if ( VIDCAP->isWaitingForCanvas() && canRender ) |
| 420 | VIDCAP->begin( this ); |
| 421 | |
| 422 | // Now capture the video |
| 423 | if ( VIDCAP->isRecording() && canRender ) |
| 424 | VIDCAP->capture(); |
| 425 | |
| 426 | renderFrame(false); |
| 427 | } |
| 428 | |
| 429 | void GuiCanvas::handleAppEvent( WindowId did, S32 event ) |
| 430 | { |
nothing calls this directly
no test coverage detected