- Timestamp:
- Nov 12, 2007, 4:42:32 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/geant4/visualization/OpenGL/src/G4OpenGLImmediateQtViewer.cc
r593 r599 159 159 ,int height) 160 160 { 161 int side = qMin(width, height); 161 int side = width; 162 if (width > height) { 163 side = height; 164 } 162 165 glViewport((width - side) / 2, (height - side) / 2, side, side); 163 166 glMatrixMode(GL_PROJECTION);
Note: See TracChangeset
for help on using the changeset viewer.