Skip to content

Commit

Permalink
remove cast
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Nov 19, 2022
1 parent 09442a5 commit 4ba8144
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions coders/wmf.c
Expand Up @@ -1618,7 +1618,7 @@ static void ipa_draw_text(wmfAPI * API, wmfDrawText_t * draw_text)
/* Apply rotation */
/* ImageMagick's drawing rotation is clockwise from horizontal
while WMF drawing rotation is counterclockwise from horizontal */
angle = fabs(RadiansToDegrees(2 * MagickPI - WMF_TEXT_ANGLE(font)));
angle=fabs(RadiansToDegrees(2.0*MagickPI-WMF_TEXT_ANGLE(font)));
if (angle == 360)
angle = 0;
if (angle != 0)
Expand All @@ -1630,7 +1630,7 @@ static void ipa_draw_text(wmfAPI * API, wmfDrawText_t * draw_text)
*/

/* Output string */
DrawAnnotation(WmfDrawingWand, 0, 0, (unsigned char*)draw_text->str);
DrawAnnotation(WmfDrawingWand,0,0,(unsigned char *) draw_text->str);

/* Underline text the Windows way (at the bottom) */
if (WMF_TEXT_UNDERLINE(font))
Expand Down Expand Up @@ -2026,7 +2026,7 @@ static void util_set_pen(wmfAPI * API, wmfDC * dc)
}

DrawSetStrokeAntialias(WmfDrawingWand, MagickTrue );
DrawSetStrokeWidth(WmfDrawingWand, (unsigned long) MagickMax(0.0, pen_width));
DrawSetStrokeWidth(WmfDrawingWand,MagickMax(0.0, pen_width));

{
LineCap
Expand Down

0 comments on commit 4ba8144

Please sign in to comment.