155 r = HAL::Get(iScreenNo, HALData::EDisplayYPixels,screenHeight); |
155 r = HAL::Get(iScreenNo, HALData::EDisplayYPixels,screenHeight); |
156 if (r!=KErrNone) |
156 if (r!=KErrNone) |
157 { |
157 { |
158 return r; |
158 return r; |
159 } |
159 } |
160 |
160 |
161 __ASSERT_ALWAYS(aScreenRect.iTl.iX >= 0 && |
161 __ASSERT_ALWAYS(aScreenRect.iTl.iX >= 0 && |
162 aScreenRect.iTl.iY >= 0 && |
162 aScreenRect.iTl.iY >= 0 && |
163 ((aScreenRect.Width() <= screenWidth && |
163 ((aScreenRect.Width() <= screenWidth && |
164 aScreenRect.Height() <= screenHeight) |
164 aScreenRect.Height() <= screenHeight) |
165 || |
165 || |
166 (aScreenRect.Width() <= screenHeight && |
166 (aScreenRect.Width() <= screenHeight && |
167 aScreenRect.Height() <= screenWidth)), |
167 aScreenRect.Height() <= screenWidth)), |
168 Panic(EPanicOutOfBounds)); |
168 Panic(EPanicOutOfBounds)); |
169 |
169 |
170 __ASSERT_ALWAYS(aScreenRect.Width() > 0 && |
170 __ASSERT_ALWAYS(aScreenRect.Width() > 0 && |
171 aScreenRect.Height() > 0, Panic(EPanicInvalidRect)); |
171 aScreenRect.Height() > 0, Panic(EPanicInvalidRect)); |
172 |
172 |
173 iUpdateRect = aScreenRect; |
173 iUpdateRect = aScreenRect; |
174 iSettingsFlags = aSettingsFlags; |
174 iSettingsFlags = aSettingsFlags; |