1264 FUNC_LOG; |
1264 FUNC_LOG; |
1265 |
1265 |
1266 // No need to calculate if the screen size is zero |
1266 // No need to calculate if the screen size is zero |
1267 if( aBRCorner.iX > 0 && aBRCorner.iY > 0 ) |
1267 if( aBRCorner.iX > 0 && aBRCorner.iY > 0 ) |
1268 { |
1268 { |
1269 // hOverscanPixels = ( ( Width * hOverscan ) + 50 ) / 20000 |
1269 // hOverscanPixels = ( ( Width * hOverscan ) + 50 ) / 10000 |
1270 // |
1270 // |
1271 // hOverscanPixels: |
1271 // hOverscanPixels: |
1272 // pixels which are needed to be added to top left X |
1272 // pixels which are needed to be added to top left X |
1273 // pixels which are needed to be reduced from bottom right X |
1273 // pixels which are needed to be reduced from bottom right X |
1274 // Width: |
1274 // Width: |
1275 // Horizontal resolution |
1275 // Horizontal resolution |
1276 // hOverscan: |
1276 // hOverscan: |
1277 // Horizontal overscan in percents (1% == 100) |
1277 // Horizontal overscan in percents (1% == 100) |
1278 // 50: |
1278 // 50: |
1279 // Used to round up possible decimals |
1279 // Used to round up possible decimals |
1280 // 20000: |
1280 // 10000: |
1281 // Used to get rid of percentage multiplier and to get the overscan value |
1281 // Used to get rid of percentage multiplier and to get the overscan value |
1282 // for one side |
1282 // for one side |
1283 TInt hOverscanPixels = ( aBRCorner.iX * iHOverscan + 50 ) / 20000; |
1283 TInt hOverscanPixels = ( aBRCorner.iX * iHOverscan + 50 ) / 10000; |
1284 aTLCorner.iX = hOverscanPixels; |
1284 aTLCorner.iX = hOverscanPixels; |
1285 aBRCorner.iX = ( aBRCorner.iX - hOverscanPixels ); |
1285 aBRCorner.iX = ( aBRCorner.iX - hOverscanPixels ); |
1286 |
1286 |
1287 // vOverscanPixels = ( ( Height * vOverscan ) + 50 ) / 20000 |
1287 // vOverscanPixels = ( ( Height * vOverscan ) + 50 ) / 10000 |
1288 // |
1288 // |
1289 // vOverscanPixels: |
1289 // vOverscanPixels: |
1290 // pixels which are needed to be added to top left Y |
1290 // pixels which are needed to be added to top left Y |
1291 // pixels which are needed to be reduced from bottom right Y |
1291 // pixels which are needed to be reduced from bottom right Y |
1292 // Height: |
1292 // Height: |
1293 // Horizontal resolution |
1293 // Horizontal resolution |
1294 // vOverscan: |
1294 // vOverscan: |
1295 // Vertical overscan in percents (1% == 100) |
1295 // Vertical overscan in percents (1% == 100) |
1296 // 50: |
1296 // 50: |
1297 // Used to round up possible decimals |
1297 // Used to round up possible decimals |
1298 // 20000: |
1298 // 10000: |
1299 // Used to get rid of percentage multiplier and to get the overscan value |
1299 // Used to get rid of percentage multiplier and to get the overscan value |
1300 // for one side |
1300 // for one side |
1301 TInt vOverscanPixels = ( aBRCorner.iY * iVOverscan + 50 ) / 20000; |
1301 TInt vOverscanPixels = ( aBRCorner.iY * iVOverscan + 50 ) / 10000; |
1302 aTLCorner.iY = vOverscanPixels; |
1302 aTLCorner.iY = vOverscanPixels; |
1303 aBRCorner.iY = ( aBRCorner.iY - vOverscanPixels ); |
1303 aBRCorner.iY = ( aBRCorner.iY - vOverscanPixels ); |
1304 } |
1304 } |
1305 } |
1305 } |
1306 |
1306 |