1
0
Fork 0

Canvas Window: use new CanvasImage method to handle events

This commit is contained in:
Thomas Geymayer 2013-02-28 01:15:44 +01:00
parent 8588eb2e4b
commit 1b49f5cc78

View file

@ -130,10 +130,7 @@ namespace canvas
//----------------------------------------------------------------------------
bool Window::handleMouseEvent(const simgear::canvas::MouseEventPtr& event)
{
if( !getCanvas().expired() )
return getCanvas().lock()->handleMouseEvent(event);
else
return false;
return _image.handleMouseEvent(event);
}
//----------------------------------------------------------------------------