graphicsdeviceinterface/screendriver/sgeneric/scnew.cpp
changeset 187 9f66f99ee56f
parent 45 36b2e23a8629
equal deleted inserted replaced
103:2717213c588a 187:9f66f99ee56f
   274  @return a 16M display mode or ENone.
   274  @return a 16M display mode or ENone.
   275  ENone - it means that current hardware doesn't have 16M color mode.
   275  ENone - it means that current hardware doesn't have 16M color mode.
   276 */
   276 */
   277 EXPORT_C TDisplayMode CFbsDrawDevice::DisplayMode16M()
   277 EXPORT_C TDisplayMode CFbsDrawDevice::DisplayMode16M()
   278 	{
   278 	{
   279 	return EColor16MAP;
   279 	return EColor16MA;
   280 	}
   280 	}
   281 
   281 
   282 
   282 
   283 /**
   283 /**
   284 Complete construction of the helper object.
   284 Complete construction of the helper object.
   370 		TRequestStatus* pComplete=&aStatus;
   370 		TRequestStatus* pComplete=&aStatus;
   371 		User::RequestComplete(pComplete,KErrNone);	    
   371 		User::RequestComplete(pComplete,KErrNone);	    
   372 		}
   372 		}
   373 	}
   373 	}
   374 
   374 
   375 /**
       
   376 Implementation of corresponding function in CDrawDevice, utilizing a tracked
       
   377 update region. Adds the given region to the update region and updates the
       
   378 screen.
       
   379 @param aRegion	Additional region to be updated.
       
   380 */
       
   381 void CScreenDeviceHelper::Update(const TRegion& aRegion)
       
   382 	{
       
   383 	if(!aRegion.IsEmpty() && !aRegion.CheckError())
       
   384 		{
       
   385 		TInt rcCnt = aRegion.Count();
       
   386 		for (TInt ii=0; ii < rcCnt; ++ii)
       
   387 			{
       
   388 			UpdateRegion(aRegion[ii]);
       
   389 			}
       
   390 		}
       
   391 	Update();
       
   392 	}
       
   393 
   375 
   394 /**
   376 /**
   395 Implementation of corresponding function in CDrawDevice, utilizing a tracked
   377 Implementation of corresponding function in CDrawDevice, utilizing a tracked
   396 update region. Adds the given rectangle to the update region.
   378 update region. Adds the given rectangle to the update region.
   397 @param aRect	Rectangle to be added to the update region.
   379 @param aRect	Rectangle to be added to the update region.