Ignore:
Timestamp:
Jan 5, 2010, 3:52:09 PM (14 years ago)
Author:
garnier
Message:

avant maj de CVS

Location:
trunk/source/visualization/OpenGL/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/visualization/OpenGL/src/G4OpenGLImmediateQtViewer.cc

    r1196 r1227  
    190190#if QT_VERSION < 0x040000
    191191    if (((getWinWidth() == (unsigned int)width())) &&(getWinHeight() == (unsigned int) height())) {
     192      return;
     193    }
    192194#else
    193195    // L. Garnier : Trap to get the size with mac OSX 10.6 and Qt 4.6(devel)
     
    203205    }
    204206    if ((getWinWidth() == (unsigned int)sw) &&(getWinHeight() == (unsigned int)sh)) {
    205 #endif
    206207      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      }
    207213    }
     214#endif
    208215  }
    209216#ifdef G4DEBUG_VIS_OGL
  • trunk/source/visualization/OpenGL/src/G4OpenGLStoredQtViewer.cc

    r1196 r1227  
    210210
    211211
     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 
    212217void G4OpenGLStoredQtViewer::paintGL()
    213218{
     
    250255  ClearView (); //ok, put the background correct
    251256  ComputeView();
    252      
     257
    253258  fHasToRepaint =false;
    254259     
Note: See TracChangeset for help on using the changeset viewer.