Changeset 895

Show
Ignore:
Timestamp:
08/08/04 10:36:32 (4 years ago)
Author:
morris
Message:

restrict zoom to 100%

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • Footagehead/trunk/FHController.m

    r888 r895  
    1 /* $Id: FHController.m,v 1.14 2004/07/13 19:08:29 morris Exp $ */ 
     1/* $Id: FHController.m,v 1.15 2004/08/08 08:36:32 morris Exp $ */ 
    22 
    33/* 
     
    11691169                imageHeight = [[_imageView image] size].height; 
    11701170                 
    1171                 if(imageWidth <= 0 || imageHeight <= 0) 
     1171                if(imageWidth <= 0.0 || imageHeight <= 0.0) 
    11721172                        return; 
    11731173                 
     
    11841184                 
    11851185                // --- get zoom level 
    1186                 zoom = 100 * ((frameWidth * frameHeight) / (imageWidth * imageHeight)); 
     1186                zoom = 100.0 * ((frameWidth * frameHeight) / (imageWidth * imageHeight)); 
     1187                 
     1188                if(zoom > 100.0) 
     1189                        zoom = 100.0; 
    11871190                 
    11881191                // --- display status