Commit 457a82fe authored by Tebjan Halm's avatar Tebjan Halm
Browse files

fixed integer division in color server

parent 775ed568
...@@ -26,7 +26,7 @@ namespace Svg ...@@ -26,7 +26,7 @@ namespace Svg
public override Brush GetBrush(SvgVisualElement styleOwner, float opacity) public override Brush GetBrush(SvgVisualElement styleOwner, float opacity)
{ {
int alpha = (int)((opacity * (this.Colour.A/255) ) * 255); int alpha = (int)((opacity * (this.Colour.A/255.0f) ) * 255);
Color colour = Color.FromArgb(alpha, this.Colour); Color colour = Color.FromArgb(alpha, this.Colour);
return new SolidBrush(colour); return new SolidBrush(colour);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment