From: Enlightenment C. <no...@cv...> - 2008-06-19 21:28:13
|
Enlightenment CVS committal Author : andreas Project : e17 Module : proto/eflpp Dir : e17/proto/eflpp/examples/ecore/paint Modified Files: main.cpp Log Message: - wrapped ecore_evas_alpha_set() to activate X composite support - modified paint example to tests alpha composite support =================================================================== RCS file: /cvs/e/e17/proto/eflpp/examples/ecore/paint/main.cpp,v retrieving revision 1.3 retrieving revision 1.4 diff -u -3 -r1.3 -r1.4 --- main.cpp 18 Aug 2007 18:28:00 -0000 1.3 +++ main.cpp 19 Jun 2008 21:27:40 -0000 1.4 @@ -95,7 +95,10 @@ /* Create the main window, a window with an embedded canvas */ efl::EcoreEvasWindowSoftwareX11* mw = new efl::EcoreEvasWindowSoftwareX11( WIDTH, HEIGHT ); - + mw->setAlpha (true); + + mw->show (); + /* Create some objects on the canvas */ efl::EvasCanvas* evas = mw->canvas(); @@ -103,7 +106,7 @@ cout << "PA: Size = " << s << endl; efl::EvasRectangle* bg = new efl::EvasRectangle( 0, 0, s.width(), s.height(), evas ); - bg->setColor( 90, 110, 240, 255 ); + bg->setColor( 50, 50, 50, 128 ); bg->setLayer( 0 ); bg->show(); |