- Timestamp:
- 08/23/04 19:17:46 (9 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgProducer/ViewerEventHandler.cpp
r3183 r3311 782 782 if (_firstTimeTogglingFullScreen && rs->isFullScreen()) 783 783 { 784 unsigned int screenWidth; 785 unsigned int screenHeight; 786 rs->getScreenSize( screenWidth, screenHeight ); 787 unsigned int windowWidth = (unsigned int)((float)screenWidth * 0.625); 788 unsigned int windowHeight = (unsigned int)((float)windowWidth * 0.75); 789 int x = (screenWidth - windowWidth) >> 1; 790 int y = (screenHeight - windowHeight) >> 1; 784 791 #ifndef WIN32 785 792 rs->useBorder(true); 786 rs->setWindowRectangle(240,220,800,600);787 793 #else 788 794 rs->fullScreen(false); 789 rs->setWindowRectangle(240,220,800,600);790 795 #endif 796 rs->setWindowRectangle( x, y, windowWidth, windowHeight ); 791 797 } 792 798 else
