graphicsdeviceinterface/screendriver/sgeneric/scnew.cpp
branchRCL_3
changeset 164 25ffed67c7ef
parent 163 bbf46f59e123
--- a/graphicsdeviceinterface/screendriver/sgeneric/scnew.cpp	Tue Aug 31 16:31:06 2010 +0300
+++ b/graphicsdeviceinterface/screendriver/sgeneric/scnew.cpp	Wed Sep 01 12:39:21 2010 +0100
@@ -372,6 +372,24 @@
 		}
 	}
 
+/**
+Implementation of corresponding function in CDrawDevice, utilizing a tracked
+update region. Adds the given region to the update region and updates the
+screen.
+@param aRegion	Additional region to be updated.
+*/
+void CScreenDeviceHelper::Update(const TRegion& aRegion)
+	{
+	if(!aRegion.IsEmpty() && !aRegion.CheckError())
+		{
+		TInt rcCnt = aRegion.Count();
+		for (TInt ii=0; ii < rcCnt; ++ii)
+			{
+			UpdateRegion(aRegion[ii]);
+			}
+		}
+	Update();
+	}
 
 /**
 Implementation of corresponding function in CDrawDevice, utilizing a tracked