windowing/windowserver/test/tauto/talphawin.cpp
changeset 187 9f66f99ee56f
parent 103 2717213c588a
equal deleted inserted replaced
103:2717213c588a 187:9f66f99ee56f
   369 	RWindow theWin(TestWin->Client()->iWs);
   369 	RWindow theWin(TestWin->Client()->iWs);
   370 	User::LeaveIfError(theWin.Construct(*(TestWin->WinTreeNode()),(TUint32)&theWin));
   370 	User::LeaveIfError(theWin.Construct(*(TestWin->WinTreeNode()),(TUint32)&theWin));
   371 
   371 
   372 	theWin.SetExtent(TPoint(0,0), winSize);
   372 	theWin.SetExtent(TPoint(0,0), winSize);
   373 	theWin.SetBackgroundColor(TRgb(127,0,255,127));
   373 	theWin.SetBackgroundColor(TRgb(127,0,255,127));
   374 	TInt mode=theWin.SetRequiredDisplayMode(EColor16MA);
   374 	TDisplayMode mode = EColor16MAP;
       
   375 	theWin.SetRequiredDisplayMode(mode);
   375 	theWin.SetVisible(ETrue);
   376 	theWin.SetVisible(ETrue);
   376 	theWin.SetTransparencyAlphaChannel();
   377 	theWin.SetTransparencyAlphaChannel();
   377 	theWin.Activate();
   378 	theWin.Activate();
   378 	TheClient->iWs.Flush();
   379 	TheClient->iWs.Flush();
   379 	CleanupClosePushL(theWin);
   380 	CleanupClosePushL(theWin);
   445 	//create a colour bitmap
   446 	//create a colour bitmap
   446 	//
   447 	//
   447 	CFbsBitmap *bitmapOne;
   448 	CFbsBitmap *bitmapOne;
   448 	bitmapOne = new (ELeave)CFbsBitmap();
   449 	bitmapOne = new (ELeave)CFbsBitmap();
   449 	CleanupStack::PushL(bitmapOne);
   450 	CleanupStack::PushL(bitmapOne);
   450 	User::LeaveIfError(bitmapOne->Create(winSize,static_cast<TDisplayMode>(mode)));
   451 	User::LeaveIfError(bitmapOne->Create(winSize,mode));
   451 
   452 
   452 	CFbsBitmapDevice *deviceOne=CFbsBitmapDevice::NewL(bitmapOne);
   453 	CFbsBitmapDevice *deviceOne=CFbsBitmapDevice::NewL(bitmapOne);
   453 	CleanupStack::PushL(deviceOne);
   454 	CleanupStack::PushL(deviceOne);
   454 
   455 
   455 	CFont *font3;
   456 	CFont *font3;
   500 	RWindow refWin(BaseWin->Client()->iWs);
   501 	RWindow refWin(BaseWin->Client()->iWs);
   501 	CleanupClosePushL(refWin);
   502 	CleanupClosePushL(refWin);
   502 	User::LeaveIfError(refWin.Construct(*(BaseWin->WinTreeNode()),(TUint32)&refWin));
   503 	User::LeaveIfError(refWin.Construct(*(BaseWin->WinTreeNode()),(TUint32)&refWin));
   503 
   504 
   504 	refWin.SetExtent(TPoint(0,0), winSize);
   505 	refWin.SetExtent(TPoint(0,0), winSize);
   505 	refWin.SetRequiredDisplayMode(static_cast<TDisplayMode>(mode));
   506 	refWin.SetRequiredDisplayMode(mode);
   506 	refWin.SetVisible(ETrue);
   507 	refWin.SetVisible(ETrue);
   507 	refWin.SetTransparencyAlphaChannel();
   508 	refWin.SetTransparencyAlphaChannel();
   508 	refWin.Activate();
   509 	refWin.Activate();
   509 	TheClient->iWs.Flush();
   510 	TheClient->iWs.Flush();
   510 
   511