Changeset 536 for trunk/geant4/visualization/OpenGL/src
- Timestamp:
- Jun 26, 2007, 3:34:37 PM (18 years ago)
- Location:
- trunk/geant4/visualization/OpenGL/src
- Files:
-
- 2 edited
-
G4OpenGLImmediateQtViewer.cc (modified) (1 diff)
-
G4OpenGLStoredQtViewer.cc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/geant4/visualization/OpenGL/src/G4OpenGLImmediateQtViewer.cc
r533 r536 106 106 //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!// 107 107 { 108 if(!fHDC) return;108 // if(!fHDC) return; 109 109 110 110 glFlush (); 111 111 112 112 // Empty the Windows message queue : 113 MSG event;114 while ( ::PeekMessage(&event, NULL, 0, 0, PM_REMOVE) ) {115 ::TranslateMessage(&event);116 ::DispatchMessage (&event);117 }113 // MSG event; 114 // while ( ::PeekMessage(&event, NULL, 0, 0, PM_REMOVE) ) { 115 // ::TranslateMessage(&event); 116 // ::DispatchMessage (&event); 117 // } 118 118 } 119 119 -
trunk/geant4/visualization/OpenGL/src/G4OpenGLStoredQtViewer.cc
r533 r536 120 120 //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!// 121 121 { 122 if(!f HDC) return;122 if(!fWindow) return; 123 123 124 124 glFlush (); 125 ::SwapBuffers(fHDC); 126 127 // Empty the Windows message queue : 128 MSG event; 129 while ( ::PeekMessage(&event, NULL, 0, 0, PM_REMOVE) ) { 130 ::TranslateMessage(&event); 131 ::DispatchMessage (&event); 132 } 125 fWindow->swapBuffers (); 133 126 } 134 127
Note:
See TracChangeset
for help on using the changeset viewer.
