Changeset 897 for trunk/source/visualization/OpenGL/src/G4OpenGLQtViewer.cc
- Timestamp:
- Dec 3, 2008, 7:03:25 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/visualization/OpenGL/src/G4OpenGLQtViewer.cc
r891 r897 200 200 #endif 201 201 202 WinSize_x = 400;203 WinSize_y = 400;204 if (WinSize_x < fVP.GetWindowSizeHintX ())205 WinSize_x = fVP.GetWindowSizeHintX ();206 if (WinSize_y < fVP.GetWindowSizeHintY ())207 WinSize_y = fVP.GetWindowSizeHintY ();208 209 202 if(!fWindow) return; 210 203 #ifdef G4DEBUG … … 799 792 setupViewport(aWidth,aHeight); 800 793 801 if ((( WinSize_x != (G4int)aWidth)) || (WinSize_y != (G4int) aHeight)) {794 if (((fWinSize_x != (unsigned int)aWidth)) || (fWinSize_y != (unsigned int) aHeight)) { 802 795 hasToRepaint =true; 803 796 } 804 WinSize_x = (G4int) aWidth;805 WinSize_y = (G4int) aHeight;797 fWinSize_x = (unsigned int) aWidth; 798 fWinSize_y = (unsigned int) aHeight; 806 799 } 807 800 … … 1598 1591 GLdouble coefDepth = 0; 1599 1592 if(mouseMove) { 1600 coefTrans = ((G4double)getSceneNearWidth())/((G4double) WinSize_x);1601 if ( WinSize_y <WinSize_x) {1602 coefTrans = ((G4double)getSceneNearWidth())/((G4double) WinSize_y);1593 coefTrans = ((G4double)getSceneNearWidth())/((G4double)fWinSize_x); 1594 if (fWinSize_y <fWinSize_x) { 1595 coefTrans = ((G4double)getSceneNearWidth())/((G4double)fWinSize_y); 1603 1596 } 1604 1597 } else {
Note: See TracChangeset
for help on using the changeset viewer.