applications/Symbian_MiniGUI_TestApp/yuv.cpp
changeset 68 535d0a02b797
parent 67 57a5a30dc911
child 69 c9d64fb26f98
equal deleted inserted replaced
67:57a5a30dc911 68:535d0a02b797
    48 			TRect rect;
    48 			TRect rect;
    49 			rect.iTl.iX = col * KSize.iWidth;
    49 			rect.iTl.iX = col * KSize.iWidth;
    50 			rect.iTl.iY = row * KSize.iHeight;
    50 			rect.iTl.iY = row * KSize.iHeight;
    51 			rect.SetSize(KSize);
    51 			rect.SetSize(KSize);
    52 			color = !color;
    52 			color = !color;
    53 			gc->SetBrushColor(color? KRgbGreen : KRgbBlack);
    53 			// Semitransparent green or black
       
    54 			gc->SetBrushColor(color? TRgb(0x00ff00, 30) : TRgb(0x000000, 30));
    54 			gc->DrawRect(rect);
    55 			gc->DrawRect(rect);
    55 			}
    56 			}
    56 	}
    57 	}
    57 	
    58 	
    58 	// Open the surface manager
    59 	// Open the surface manager
    93 
    94 
    94 	    surfaceManager.SurfaceInfo(surfaceId, buf); 
    95 	    surfaceManager.SurfaceInfo(surfaceId, buf); 
    95 	    }
    96 	    }
    96 
    97 
    97 	
    98 	
       
    99 	
    98 	win.SetBackgroundSurface(surfaceId);
   100 	win.SetBackgroundSurface(surfaceId);
    99 	gc->Deactivate();
   101 	gc->Deactivate();
   100 	win.EndRedraw();
   102 	win.EndRedraw();
   101 	ws.Flush();
   103 	ws.Flush();
   102  	User::After(3000000);
   104  	User::After(3000000);