equal
deleted
inserted
replaced
53 { |
53 { |
54 DEBUG_INT("MMA::CMMACanvasDisplay::SourceSizeChanged %d", |
54 DEBUG_INT("MMA::CMMACanvasDisplay::SourceSizeChanged %d", |
55 aSourceSize.iWidth); |
55 aSourceSize.iWidth); |
56 DEBUG_INT("MMA::CMMACanvasDisplay::SourceSizeChanged %d", |
56 DEBUG_INT("MMA::CMMACanvasDisplay::SourceSizeChanged %d", |
57 aSourceSize.iHeight); |
57 aSourceSize.iHeight); |
58 |
|
59 iSourceSize = aSourceSize; |
58 iSourceSize = aSourceSize; |
60 // If user rect size was set or full screen was set then we need to take |
59 // If user rect size was set or full screen was set then we need to take |
61 // that into account then the actual source size |
60 // that into account then the actual source size |
62 if(IsUserRectSet() || iFullScreen) |
61 if(IsUserRectSet() || iFullScreen) |
63 { |
62 { |
64 return; |
63 return; |
65 } |
64 } |
66 TSize fullScreenSize(iCanvas->ContentSize()); |
65 TSize fullScreenSize(iCanvas->ContentSize()); |
|
66 |
67 |
67 |
68 TBool sourceIsBigger = (aSourceSize.iWidth > fullScreenSize.iWidth || |
68 TBool sourceIsBigger = (aSourceSize.iWidth > fullScreenSize.iWidth || |
69 aSourceSize.iHeight > fullScreenSize.iHeight); |
69 aSourceSize.iHeight > fullScreenSize.iHeight); |
70 |
70 |
71 if (iWindow) |
71 if (iWindow) |