Definition at line 281 of file ImageSetIdxGrid.h. References mCellH, mCellW, and mExtH. Referenced by HandleViewSettings(). 00282 { 00283 OGLIMAGE* oglIm = oglView->im; 00284 float zoomX = 1, zoomY = 1; 00285 00286 if (oglIm->w >= oglIm->h) 00287 zoomY = zoomX = (mCellW-8)/(float)oglIm->w; 00288 else if (oglIm->w<oglIm->h) 00289 zoomX = zoomY = (mCellH-(8+mExtH))/(float)oglIm->h; 00290 if (zoomX > 2) // Refuse zooming more than 2 00291 zoomX = zoomY = 2; 00292 viewSys.SetZoom(oglView, zoomX, zoomY); 00293 }
|