X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Fpublic-api%2Fcontrols%2Fcontrol-impl.cpp;fp=dali-toolkit%2Fpublic-api%2Fcontrols%2Fcontrol-impl.cpp;h=c720ee174dba5016415f08d207fdf1014d212751;hp=1cb02bf295b32bbc5a3c65f9fcd2f3bb3e2caa92;hb=1c5674a11a51310ee689d6daf4e6b7d94dec607e;hpb=5f6e04b26996da4c06716ce044bdfdb0e7e2e61b diff --git a/dali-toolkit/public-api/controls/control-impl.cpp b/dali-toolkit/public-api/controls/control-impl.cpp index 1cb02bf..c720ee1 100644 --- a/dali-toolkit/public-api/controls/control-impl.cpp +++ b/dali-toolkit/public-api/controls/control-impl.cpp @@ -23,10 +23,8 @@ #include #include #include -#include #include #include -#include #include #include #include @@ -183,10 +181,10 @@ struct Background /** * Creates a white coloured Mesh. */ -Mesh CreateMesh() +Vector3 CreateMesh() { Vector3 white( Color::WHITE ); - + /* MeshData meshData; // Create vertices with a white color (actual color is set by actor color) @@ -207,8 +205,9 @@ Mesh CreateMesh() meshData.SetVertices( vertices ); meshData.SetFaceIndices( faces ); meshData.SetHasColor( true ); - - return Mesh::New( meshData ); + */ + return white; + //return Mesh::New( meshData ); } /** @@ -524,6 +523,7 @@ void Control::SetBackgroundColor( const Vector4& color ) // Just set the actor color background.actor.SetColor( color ); } + /* else { // Create Mesh Actor @@ -538,6 +538,7 @@ void Control::SetBackgroundColor( const Vector4& color ) Self().Insert( 0, meshActor ); mImpl->mAddRemoveBackgroundChild = false; } + */ background.color = color; } @@ -564,6 +565,7 @@ void Control::SetBackgroundImage( Image image ) background.actor.Reset(); } + /* ImageActor imageActor = ImageActor::New( image ); SetupBackgroundActor( imageActor, background.color ); @@ -573,6 +575,7 @@ void Control::SetBackgroundImage( Image image ) // use insert to guarantee its the first child (so that OVERLAY mode works) Self().Insert( 0, imageActor ); mImpl->mAddRemoveBackgroundChild = false; + */ } void Control::ClearBackground()