diff -r 9c70c0a878c0 -r 77b29c7ebdbb windowing/windowserver/tauto/talphawin.cpp --- a/windowing/windowserver/tauto/talphawin.cpp Fri May 14 17:03:25 2010 +0100 +++ b/windowing/windowserver/tauto/talphawin.cpp Fri May 28 15:45:54 2010 +0100 @@ -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(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(mode)); + refWin.SetRequiredDisplayMode(mode); refWin.SetVisible(ETrue); refWin.SetTransparencyAlphaChannel(); refWin.Activate();