Show
Ignore:
Timestamp:
09/18/14 11:51:24 (20 hours ago)
Author:
robert
Message:

Created ui lua scripts in a way that makes them compatible with being used with lua require()

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osgViewer/GraphicsWindowIOS.mm

    r13277 r13376  
    728728    _viewContentScaleFactor = -1.0f; 
    729729    _valid = _initialized = true; 
     730 
     731    // make sure the event queue has the correct window rectangle size and input range 
     732    getEventQueue()->syncWindowRectangleWithGraphcisContext(); 
    730733} 
    731734 
     
    890893    // IOSs origin is top/left: 
    891894    getEventQueue()->getCurrentEventState()->setMouseYOrientation(osgGA::GUIEventAdapter::Y_INCREASING_DOWNWARDS); 
     895 
     896    // make sure the event queue has the correct window rectangle size and input range 
     897    getEventQueue()->syncWindowRectangleWithGraphcisContext(); 
    892898     
    893899    _valid = _initialized = _realized = true;