@@ -311,10 +311,10 @@ class DxfWriteInterface : public DRW_Interface {
311311 int findDxfColor (const RgbaColor &src) {
312312 int best = 0 ;
313313 double minDist = VERY_POSITIVE;
314- Vector srcv = Vector::From ( src.redF (), src.greenF (), src.blueF ()) ;
314+ Vector srcv = { src.redF (), src.greenF (), src.blueF ()} ;
315315 for (int i = 1 ; i < 256 ; i++) {
316316 RgbaColor dst = RGBi (DRW::dxfColors[i][0 ], DRW::dxfColors[i][1 ], DRW::dxfColors[i][2 ]);
317- Vector dstv = Vector::From ( dst.redF (), dst.greenF (), dst.blueF ()) ;
317+ Vector dstv = { dst.redF (), dst.greenF (), dst.blueF ()} ;
318318 double dist = srcv.Minus (dstv).Magnitude ();
319319 if (dist < minDist || best == 0 ) {
320320 best = i;
@@ -421,7 +421,7 @@ class DxfWriteInterface : public DRW_Interface {
421421 void writeBezier (SBezier *sb) {
422422 hStyle hs = { (uint32_t )sb->auxA };
423423 Vector c;
424- Vector n = Vector::From ( 0.0 , 0.0 , 1.0 ) ;
424+ Vector n = { 0.0 , 0.0 , 1.0 } ;
425425 double r;
426426
427427 if (sb->deg == 1 ) {
@@ -732,7 +732,7 @@ void EpsFileWriter::StartPath(RgbaColor strokeRgb, double lineWidth,
732732 bool filled, RgbaColor fillRgb, hStyle hs)
733733{
734734 fprintf (f, " newpath\r\n " );
735- prevPt = Vector::From ( VERY_POSITIVE, VERY_POSITIVE, VERY_POSITIVE) ;
735+ prevPt = { VERY_POSITIVE, VERY_POSITIVE, VERY_POSITIVE} ;
736736}
737737void EpsFileWriter::FinishPath (RgbaColor strokeRgb, double lineWidth,
738738 bool filled, RgbaColor fillRgb, hStyle hs)
@@ -789,7 +789,7 @@ void EpsFileWriter::Triangle(STriangle *tr) {
789789}
790790
791791void EpsFileWriter::Bezier (SBezier *sb) {
792- Vector c, n = Vector::From ( 0 , 0 , 1 ) ;
792+ Vector c, n = { 0 , 0 , 1 } ;
793793 double r;
794794 if (sb->deg == 1 ) {
795795 MaybeMoveTo (sb->ctrl [0 ], sb->ctrl [1 ]);
@@ -999,7 +999,7 @@ void PdfFileWriter::StartPath(RgbaColor strokeRgb, double lineWidth,
999999 fillRgb.redF (), fillRgb.greenF (), fillRgb.blueF ());
10001000 }
10011001
1002- prevPt = Vector::From ( VERY_POSITIVE, VERY_POSITIVE, VERY_POSITIVE) ;
1002+ prevPt = { VERY_POSITIVE, VERY_POSITIVE, VERY_POSITIVE} ;
10031003}
10041004void PdfFileWriter::FinishPath (RgbaColor strokeRgb, double lineWidth,
10051005 bool filled, RgbaColor fillRgb, hStyle hs)
@@ -1133,7 +1133,7 @@ void SvgFileWriter::StartPath(RgbaColor strokeRgb, double lineWidth,
11331133 bool filled, RgbaColor fillRgb, hStyle hs)
11341134{
11351135 fprintf (f, " <path d='" );
1136- prevPt = Vector::From ( VERY_POSITIVE, VERY_POSITIVE, VERY_POSITIVE) ;
1136+ prevPt = { VERY_POSITIVE, VERY_POSITIVE, VERY_POSITIVE} ;
11371137}
11381138void SvgFileWriter::FinishPath (RgbaColor strokeRgb, double lineWidth,
11391139 bool filled, RgbaColor fillRgb, hStyle hs)
@@ -1168,7 +1168,7 @@ void SvgFileWriter::Triangle(STriangle *tr) {
11681168}
11691169
11701170void SvgFileWriter::Bezier (SBezier *sb) {
1171- Vector c, n = Vector::From ( 0 , 0 , 1 ) ;
1171+ Vector c, n = { 0 , 0 , 1 } ;
11721172 double r;
11731173 if (sb->deg == 1 ) {
11741174 MaybeMoveTo (sb->ctrl [0 ], sb->ctrl [1 ]);
0 commit comments