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