Definition at line 281 of file DirImViewer.h. References mMaxZoom. Referenced by HandleViewSettings(). 00282 { 00283 OGLIMAGE* oglIm = oglView->im; 00284 float zoomX, zoomY; 00285 00286 if (oglIm->w >= oglIm->h) 00287 zoomY = zoomX = (oglView->w)/(float)oglIm->w; 00288 else 00289 zoomX = zoomY = (oglView->h)/(float)oglIm->h; 00290 if (zoomX > mMaxZoom) 00291 zoomX = zoomY = mMaxZoom; 00292 viewSys.SetZoom(oglView, zoomX, zoomY); 00293 }
|