summaryrefslogtreecommitdiff
path: root/ElmSharp
diff options
context:
space:
mode:
authorPawel Andruszkiewicz <p.andruszkie@samsung.com>2016-10-20 11:14:11 +0200
committerPawel Andruszkiewicz <p.andruszkie@samsung.com>2016-10-20 11:14:11 +0200
commita88fa746a97c2bc4ead0a949383105c835d4ba66 (patch)
treeb04e6a7a57480632756776e56181e53d7a554e2e /ElmSharp
parentfa00db16e99ce59297742b2fa506b52bf4d8de41 (diff)
downloadelm-sharp-a88fa746a97c2bc4ead0a949383105c835d4ba66.tar.gz
elm-sharp-a88fa746a97c2bc4ead0a949383105c835d4ba66.tar.bz2
elm-sharp-a88fa746a97c2bc4ead0a949383105c835d4ba66.zip
EFL requires the color to be pre-multiplied
Change-Id: I7dc8711c404f8c095c9342a6384195cb2587938f Signed-off-by: Pawel Andruszkiewicz <p.andruszkie@samsung.com>
Diffstat (limited to 'ElmSharp')
-rw-r--r--ElmSharp/ElmSharp/Widget.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/ElmSharp/ElmSharp/Widget.cs b/ElmSharp/ElmSharp/Widget.cs
index 38b88cc..71962e1 100644
--- a/ElmSharp/ElmSharp/Widget.cs
+++ b/ElmSharp/ElmSharp/Widget.cs
@@ -121,7 +121,10 @@ namespace ElmSharp
public void SetPartColor(string part, Color color)
{
- Interop.Elementary.elm_object_color_class_color_set(Handle, part, color.R, color.G, color.B, color.A);
+ Interop.Elementary.elm_object_color_class_color_set(Handle, part, color.R * color.A / 255,
+ color.G * color.A / 255,
+ color.B * color.A / 255,
+ color.A);
}
internal IntPtr GetPartContent(string part)