photosgallery/viewframework/texturemanager/src/glxtexturemanagerimpl.cpp
branchRCL_3
changeset 9 6b87b143d312
parent 1 9ba538e329bd
child 13 71da52165949
--- a/photosgallery/viewframework/texturemanager/src/glxtexturemanagerimpl.cpp	Tue Feb 02 10:12:14 2010 +0200
+++ b/photosgallery/viewframework/texturemanager/src/glxtexturemanagerimpl.cpp	Fri Feb 19 22:51:01 2010 +0200
@@ -372,7 +372,7 @@
 	CFbsBitmap* picture = new (ELeave) CFbsBitmap;
 	CleanupStack::PushL(picture);
 	User::LeaveIfError(picture->Create(TSize(KGlxFlatTextureSize,
-	                                        KGlxFlatTextureSize), EColor64K ) );
+	                                        KGlxFlatTextureSize), EColor16MU ) );
 
 	CFbsBitmapDevice* drawBufDevice = CFbsBitmapDevice::NewL(picture);
 	CleanupStack::PushL(drawBufDevice);
@@ -1005,7 +1005,7 @@
     {
     TRACER("CGlxTextureManagerImpl::SelectAttributeL");
     const CGlxMedia& media = *aMedia.Properties();
-    if ( aMedia.Properties() ==  NULL || media.Count() == 0 )
+    if ( !aMedia.Properties() || media.Count() == 0 )
         {
         GLX_LOG_INFO("SelectAttributeL - NULL CGlxMedia / No Attribs"); 
         User::Leave( KErrArgument );
@@ -1103,7 +1103,7 @@
     TInt textureToBeUnloaded = -1;
 
     //check if the image is decoded
-    if(aBitmap != NULL)
+    if ( aBitmap )
         {
         iZoomedList[aThumbnailIndex].iBitmap = aBitmap;