graphicsdeviceinterface/screendriver/sbit/Cdsb.cpp
branchRCL_3
changeset 163 bbf46f59e123
parent 33 25f95128741d
child 164 25ffed67c7ef
equal deleted inserted replaced
150:57c618273d5c 163:bbf46f59e123
   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;