Ignore:
Timestamp:
Oct 14, 2009, 4:39:32 PM (16 years ago)
Author:
garnier
Message:

update

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

Legend:

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

    r1130 r1131  
    2525//
    2626//
    27 // $Id: G4OpenGLImmediateQtViewer.cc,v 1.14 2009/05/13 10:28:00 lgarnier Exp $
     27// $Id: G4OpenGLImmediateQtViewer.cc,v 1.15 2009/10/14 14:32:09 lgarnier Exp $
    2828// GEANT4 tag $Name:  $
    2929//
     
    188188  // DO NOT RESIZE IF SIZE HAS NOT CHANGE
    189189  if ( !fHasToRepaint) {
    190     if (((getWinWidth() == (unsigned int)width())) &&(getWinHeight() == (unsigned int) height())) {
     190    // L. Garnier : Trap to get the size with mac OSX 10.6 and Qt 4.6(devel)
     191    // Tested on Qt4.5 on mac, 4.4 on windows, 4.5 on unbuntu
     192    int sw = 0;
     193    int sh = 0;
     194    if (!isMaximized() && !isFullScreen()) {
     195      sw = normalGeometry().width();
     196      sh = normalGeometry().height();
     197    } else {
     198      sw = frameGeometry().width();
     199      sh = frameGeometry().height();
     200    }
     201    if ((getWinWidth() == (unsigned int)sw) &&(getWinHeight() == (unsigned int)sh)) {
    191202      return;
    192203    }
  • trunk/source/visualization/OpenGL/src/G4OpenGLQtViewer.cc

    r1125 r1131  
    2525//
    2626//
    27 // $Id: G4OpenGLQtViewer.cc,v 1.43 2009/07/29 10:04:45 lgarnier Exp $
     27// $Id: G4OpenGLQtViewer.cc,v 1.44 2009/10/14 14:35:07 lgarnier Exp $
    2828// GEANT4 tag $Name:  $
    2929//
  • trunk/source/visualization/OpenGL/src/G4OpenGLStoredQtViewer.cc

    r1126 r1131  
    234234      sh = frameGeometry().height();
    235235    }
    236 #ifdef G4DEBUG_VIS_OGL
    237     printf("G4OpenGLStoredQtViewer::paintGL %d = %d    %d = %d\n",getWinWidth(),width(),getWinHeight(),height());
    238     printf("G4OpenGLStoredQtViewer::paintGL ................................%d x %d \n",sw,sh);
    239    
    240 #endif
    241236    if ((getWinWidth() == (unsigned int)sw) &&(getWinHeight() == (unsigned int)sh)) {
    242237      return;
Note: See TracChangeset for help on using the changeset viewer.