Show
Ignore:
Timestamp:
05/27/08 08:13:17 (3 months ago)
Author:
vossg
Message:

removed: old c-style casts as these hide edit/get mixups

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Source/System/Cluster/Window/MultiDisplay/OSGMultiDisplayWindow.cpp

    r1198 r1249  
    331331    Real64 scaleCWidth  = 
    332332        ((width - getXOverlap()) * (getHServers() - 1) + width) / 
    333         (float)getWidth(); 
     333        float(getWidth()); 
    334334    Real64 scaleCHeight = 
    335335        ((height - getYOverlap())* (getVServers() - 1) + height)/ 
    336         (float)getHeight(); 
     336        float(getHeight()); 
    337337 
    338338    // duplicate viewports 
     
    343343        clientStereoPort = dynamic_cast<StereoBufferViewport *>(clientPort); 
    344344 
    345         cleft   = (Int32)(clientPort->getPixelLeft()      * scaleCWidth)   ; 
    346         cbottom = (Int32)(clientPort->getPixelBottom()    * scaleCHeight)  ; 
    347         cright  = (Int32)((clientPort->getPixelRight()+1) * scaleCWidth) -1; 
    348         ctop    = (Int32)((clientPort->getPixelTop()+1)   * scaleCHeight)-1; 
     345        cleft   = Int32(clientPort->getPixelLeft()      * scaleCWidth)   ; 
     346        cbottom = Int32(clientPort->getPixelBottom()    * scaleCHeight)  ; 
     347        cright  = Int32((clientPort->getPixelRight()+1) * scaleCWidth) -1; 
     348        ctop    = Int32((clientPort->getPixelTop()+1)   * scaleCHeight)-1; 
    349349 
    350350        if(cright  < left   || 
     
    422422        deco->setFullWidth ( cright-cleft ); 
    423423        deco->setFullHeight( ctop-cbottom ); 
    424         deco->setSize( ( l+left-cleft     ) / (float)( cright-cleft ), 
    425                        ( b+bottom-cbottom ) / (float)( ctop-cbottom ), 
    426                        ( r+left-cleft     ) / (float)( cright-cleft ), 
    427                        ( t+bottom-cbottom ) / (float)( ctop-cbottom ) ); 
     424        deco->setSize( ( l+left-cleft     ) / float( cright-cleft ), 
     425                       ( b+bottom-cbottom ) / float( ctop-cbottom ), 
     426                       ( r+left-cleft     ) / float( cright-cleft ), 
     427                       ( t+bottom-cbottom ) / float( ctop-cbottom ) ); 
    428428        deco->setDecoratee( clientPort->getCamera() ); 
    429429