--- a/windowing/windowserver/tauto/talphawin.cpp Tue Apr 27 17:59:32 2010 +0300
+++ b/windowing/windowserver/tauto/talphawin.cpp Tue May 11 17:25:23 2010 +0300
@@ -371,7 +371,9 @@
theWin.SetExtent(TPoint(0,0), winSize);
theWin.SetBackgroundColor(TRgb(127,0,255,127));
- TInt mode=theWin.SetRequiredDisplayMode(EColor16MA);
+
+ TDisplayMode mode = EColor16MAP;
+ theWin.SetRequiredDisplayMode(mode);
theWin.SetVisible(ETrue);
theWin.SetTransparencyAlphaChannel();
theWin.Activate();
@@ -447,7 +449,7 @@
CFbsBitmap *bitmapOne;
bitmapOne = new (ELeave)CFbsBitmap();
CleanupStack::PushL(bitmapOne);
- User::LeaveIfError(bitmapOne->Create(winSize,static_cast<TDisplayMode>(mode)));
+ User::LeaveIfError(bitmapOne->Create(winSize,mode));
CFbsBitmapDevice *deviceOne=CFbsBitmapDevice::NewL(bitmapOne);
CleanupStack::PushL(deviceOne);
@@ -502,7 +504,7 @@
User::LeaveIfError(refWin.Construct(*(BaseWin->WinTreeNode()),(TUint32)&refWin));
refWin.SetExtent(TPoint(0,0), winSize);
- refWin.SetRequiredDisplayMode(static_cast<TDisplayMode>(mode));
+ refWin.SetRequiredDisplayMode(mode);
refWin.SetVisible(ETrue);
refWin.SetTransparencyAlphaChannel();
refWin.Activate();