Canvas Window: use new CanvasImage method to handle events
This commit is contained in:
parent
8588eb2e4b
commit
1b49f5cc78
1 changed files with 1 additions and 4 deletions
|
@ -130,10 +130,7 @@ namespace canvas
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
bool Window::handleMouseEvent(const simgear::canvas::MouseEventPtr& event)
|
bool Window::handleMouseEvent(const simgear::canvas::MouseEventPtr& event)
|
||||||
{
|
{
|
||||||
if( !getCanvas().expired() )
|
return _image.handleMouseEvent(event);
|
||||||
return getCanvas().lock()->handleMouseEvent(event);
|
|
||||||
else
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in a new issue