# HG changeset patch # User Faisal Memon # Date 1269555228 0 # Node ID 535d0a02b797d643b841607ed738bc446e2450b4 # Parent 57a5a30dc9112e02e0069802cc3d634ab5042f97 Make the grid semi-transparent. diff -r 57a5a30dc911 -r 535d0a02b797 applications/Symbian_MiniGUI_TestApp/yuv.cpp --- a/applications/Symbian_MiniGUI_TestApp/yuv.cpp Thu Mar 25 22:08:14 2010 +0000 +++ b/applications/Symbian_MiniGUI_TestApp/yuv.cpp Thu Mar 25 22:13:48 2010 +0000 @@ -50,7 +50,8 @@ rect.iTl.iY = row * KSize.iHeight; rect.SetSize(KSize); color = !color; - gc->SetBrushColor(color? KRgbGreen : KRgbBlack); + // Semitransparent green or black + gc->SetBrushColor(color? TRgb(0x00ff00, 30) : TRgb(0x000000, 30)); gc->DrawRect(rect); } } @@ -95,6 +96,7 @@ } + win.SetBackgroundSurface(surfaceId); gc->Deactivate(); win.EndRedraw();