Changeset 1227 for trunk/source/visualization/OpenGL/src
- Timestamp:
- Jan 5, 2010, 3:52:09 PM (14 years ago)
- Location:
- trunk/source/visualization/OpenGL/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/visualization/OpenGL/src/G4OpenGLImmediateQtViewer.cc
r1196 r1227 190 190 #if QT_VERSION < 0x040000 191 191 if (((getWinWidth() == (unsigned int)width())) &&(getWinHeight() == (unsigned int) height())) { 192 return; 193 } 192 194 #else 193 195 // L. Garnier : Trap to get the size with mac OSX 10.6 and Qt 4.6(devel) … … 203 205 } 204 206 if ((getWinWidth() == (unsigned int)sw) &&(getWinHeight() == (unsigned int)sh)) { 205 #endif206 207 return; 208 209 } else if ((sw == 0) && (sh == 0)) { // NOT A TOP LEVEL WIDGET 210 if (((getWinWidth() == (unsigned int)width())) &&(getWinHeight() == (unsigned int) height())) { 211 // return; 212 } 207 213 } 214 #endif 208 215 } 209 216 #ifdef G4DEBUG_VIS_OGL -
trunk/source/visualization/OpenGL/src/G4OpenGLStoredQtViewer.cc
r1196 r1227 210 210 211 211 212 // We have to get several case : 213 // - Only activate the windows (mouse click for example) -> Do not redraw 214 // - resize window -> redraw 215 // - try to avoid recompute everything if we do not rescale picture (side is the same) 216 212 217 void G4OpenGLStoredQtViewer::paintGL() 213 218 { … … 250 255 ClearView (); //ok, put the background correct 251 256 ComputeView(); 252 257 253 258 fHasToRepaint =false; 254 259
Note: See TracChangeset
for help on using the changeset viewer.