aboutsummaryrefslogtreecommitdiff
path: root/fbwarn/src/parseBVG.c
diff options
context:
space:
mode:
authoraxtloss <axtlos@getcryst.al>2024-03-07 00:56:46 +0100
committeraxtloss <axtlos@getcryst.al>2024-03-07 00:56:46 +0100
commitc365a6bac14227a6e7e341ef8228365ca443d2fb (patch)
tree6c0fed4e74fb3198a3afb79fd7bebfa477c46a47 /fbwarn/src/parseBVG.c
parent0f5bd8e774b4746c27d9a573057d57770e1cf0de (diff)
downloadfsverify-c365a6bac14227a6e7e341ef8228365ca443d2fb.tar.gz
fsverify-c365a6bac14227a6e7e341ef8228365ca443d2fb.tar.bz2
bugfixesHEADmain
Diffstat (limited to 'fbwarn/src/parseBVG.c')
-rw-r--r--fbwarn/src/parseBVG.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fbwarn/src/parseBVG.c b/fbwarn/src/parseBVG.c
index db25ddc..9b0a137 100644
--- a/fbwarn/src/parseBVG.c
+++ b/fbwarn/src/parseBVG.c
@@ -282,7 +282,7 @@ BVGCircle *BVGParseCircleSegment(char *argv[7]) {
clr = parseColorFromHex(args[3]);
result->drawSector=true;
- result->centerX=x; result->centerY=y*scale;
+ result->centerX=x*scale; result->centerY=y*scale;
result->color=*clr;
result->radius=radius*scale;
result->segments=segments;
@@ -315,7 +315,7 @@ BVGRing *BVGParseRing(char *argv[8]) {
result->centerX=x*scale; result->centerY=y*scale;
- result->inRadius=innerRadius; result->outRadius=outerRadius;
+ result->inRadius=innerRadius*scale; result->outRadius=outerRadius*scale;
result->startAngle=startAngle; result->endAngle=endAngle;
result->segmets=segments;
result->color=*clr;
@@ -343,7 +343,7 @@ BVGEllipse *BVGParseEllipse(char *argv[6]) {
args[5][strlen(args[5])-1] = '\0';
clr = parseColorFromHex(args[5]);
- result->centerX=x; result->centerY=y;
+ result->centerX=x*scale; result->centerY=y*scale;
result->horizontalRadius=horizontalRadius*scale;
result->verticalRadius=verticalRadius*scale;
result->fill=fill;