Skip to content

Commit

Permalink
fixed integer division in color server
Browse files Browse the repository at this point in the history
  • Loading branch information
tebjan committed Jun 20, 2013
1 parent 775ed56 commit 457a82f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Painting/SvgColourServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public Color Colour

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);

return new SolidBrush(colour);
Expand Down

0 comments on commit 457a82f

Please sign in to comment.