@@ -309,10 +309,10 @@ class DxfWriteInterface : public DRW_Interface {
309309 int findDxfColor (const RgbaColor &src) {
310310 int best = 0 ;
311311 double minDist = VERY_POSITIVE;
312- Vector srcv = Vector::From ( src.redF (), src.greenF (), src.blueF ()) ;
312+ Vector srcv = { src.redF (), src.greenF (), src.blueF ()} ;
313313 for (int i = 1 ; i < 256 ; i++) {
314314 RgbaColor dst = RGBi (DRW::dxfColors[i][0 ], DRW::dxfColors[i][1 ], DRW::dxfColors[i][2 ]);
315- Vector dstv = Vector::From ( dst.redF (), dst.greenF (), dst.blueF ()) ;
315+ Vector dstv = { dst.redF (), dst.greenF (), dst.blueF ()} ;
316316 double dist = srcv.Minus (dstv).Magnitude ();
317317 if (dist < minDist || best == 0 ) {
318318 best = i;
@@ -419,7 +419,7 @@ class DxfWriteInterface : public DRW_Interface {
419419 void writeBezier (SBezier *sb) {
420420 hStyle hs = { (uint32_t )sb->auxA };
421421 Vector c;
422- Vector n = Vector::From ( 0.0 , 0.0 , 1.0 ) ;
422+ Vector n = { 0.0 , 0.0 , 1.0 } ;
423423 double r;
424424
425425 if (sb->deg == 1 ) {
@@ -730,7 +730,7 @@ void EpsFileWriter::StartPath(RgbaColor strokeRgb, double lineWidth,
730730 bool filled, RgbaColor fillRgb, hStyle hs)
731731{
732732 fprintf (f, " newpath\r\n " );
733- prevPt = Vector::From ( VERY_POSITIVE, VERY_POSITIVE, VERY_POSITIVE) ;
733+ prevPt = { VERY_POSITIVE, VERY_POSITIVE, VERY_POSITIVE} ;
734734}
735735void EpsFileWriter::FinishPath (RgbaColor strokeRgb, double lineWidth,
736736 bool filled, RgbaColor fillRgb, hStyle hs)
@@ -787,7 +787,7 @@ void EpsFileWriter::Triangle(STriangle *tr) {
787787}
788788
789789void EpsFileWriter::Bezier (SBezier *sb) {
790- Vector c, n = Vector::From ( 0 , 0 , 1 ) ;
790+ Vector c, n = { 0 , 0 , 1 } ;
791791 double r;
792792 if (sb->deg == 1 ) {
793793 MaybeMoveTo (sb->ctrl [0 ], sb->ctrl [1 ]);
@@ -997,7 +997,7 @@ void PdfFileWriter::StartPath(RgbaColor strokeRgb, double lineWidth,
997997 fillRgb.redF (), fillRgb.greenF (), fillRgb.blueF ());
998998 }
999999
1000- prevPt = Vector::From ( VERY_POSITIVE, VERY_POSITIVE, VERY_POSITIVE) ;
1000+ prevPt = { VERY_POSITIVE, VERY_POSITIVE, VERY_POSITIVE} ;
10011001}
10021002void PdfFileWriter::FinishPath (RgbaColor strokeRgb, double lineWidth,
10031003 bool filled, RgbaColor fillRgb, hStyle hs)
@@ -1131,7 +1131,7 @@ void SvgFileWriter::StartPath(RgbaColor strokeRgb, double lineWidth,
11311131 bool filled, RgbaColor fillRgb, hStyle hs)
11321132{
11331133 fprintf (f, " <path d='" );
1134- prevPt = Vector::From ( VERY_POSITIVE, VERY_POSITIVE, VERY_POSITIVE) ;
1134+ prevPt = { VERY_POSITIVE, VERY_POSITIVE, VERY_POSITIVE} ;
11351135}
11361136void SvgFileWriter::FinishPath (RgbaColor strokeRgb, double lineWidth,
11371137 bool filled, RgbaColor fillRgb, hStyle hs)
@@ -1166,7 +1166,7 @@ void SvgFileWriter::Triangle(STriangle *tr) {
11661166}
11671167
11681168void SvgFileWriter::Bezier (SBezier *sb) {
1169- Vector c, n = Vector::From ( 0 , 0 , 1 ) ;
1169+ Vector c, n = { 0 , 0 , 1 } ;
11701170 double r;
11711171 if (sb->deg == 1 ) {
11721172 MaybeMoveTo (sb->ctrl [0 ], sb->ctrl [1 ]);
0 commit comments