| 393 | CanvasSizeChangeSignal GuiCanvas::smCanvasSizeChangeSignal; |
| 394 | |
| 395 | void GuiCanvas::handleResize( WindowId did, S32 width, S32 height ) |
| 396 | { |
| 397 | getCanvasSizeChangeSignal().trigger(this); |
| 398 | if (Journal::IsPlaying() && mPlatformWindow) |
| 399 | { |
| 400 | mPlatformWindow->lockSize(false); |
| 401 | mPlatformWindow->setSize(Point2I(width, height)); |
| 402 | mPlatformWindow->lockSize(true); |
| 403 | } |
| 404 | |
| 405 | // Notify the scripts |
| 406 | if ( isMethod( "onResize" ) ) |
| 407 | Con::executef( this, "onResize", Con::getIntArg( width ), Con::getIntArg( height ) ); |
| 408 | } |
| 409 | |
| 410 | void GuiCanvas::handlePaintEvent(WindowId did) |
| 411 | { |