equal
deleted
inserted
replaced
970 GLX_LOG_INFO2("ActivateZoom : Center = [%d,%d], ", |
970 GLX_LOG_INFO2("ActivateZoom : Center = [%d,%d], ", |
971 TInt(center.iX), |
971 TInt(center.iX), |
972 TInt(center.iY) |
972 TInt(center.iY) |
973 ); |
973 ); |
974 |
974 |
975 // A zoom ratio is calculated by multiplying the the new virtual size with 100 and dividing it with the original size. |
975 // Minimum and Maximum Zoom Ratio |
976 // this division using integers might cause truncation. The +1 is added to make sure that every such truncation |
976 iMinZoomRatio = iZoomRatio = aMinSliderRange; |
977 // is pegged to the next higher integer than the next lower, thus ensuring that the zoom ratio in the zoom mode will always |
|
978 // be greater than that in the full screen mode. |
|
979 // |
|
980 // The only other solution is to introduce a real number for this calculation. But do we really need such a deep level of accuracy? |
|
981 iMinZoomRatio = iZoomRatio = aMinSliderRange + 1; |
|
982 iMaxZoomRatio = aMaxSliderRange ; |
977 iMaxZoomRatio = aMaxSliderRange ; |
983 |
978 |
984 iMathsEngine.Initialize(center, |
979 iMathsEngine.Initialize(center, |
985 screenSize, |
980 screenSize, |
986 imageSize, |
981 imageSize, |