@@ -739,7 +739,7 @@ void pxPath::pushOpcode(uint8_t op)
739
739
740
740
void pxPath::pushFloat (float f)
741
741
{
742
- #if !defined(PX_PLATFORM_DFB_NON_X11) && !defined(PX_PLATFORM_GENERIC_DFB)
742
+ #if !defined(PX_PLATFORM_DFB_NON_X11) && !defined(PX_PLATFORM_GENERIC_DFB) && !defined(PX_PLATFORM_WIN)
743
743
floatBytes_t fb = {.f = f};
744
744
#else
745
745
// support older toolchain
@@ -784,7 +784,7 @@ float pxPath::getFloatAt(int i)
784
784
return 0 ;
785
785
}
786
786
787
- #if !defined(PX_PLATFORM_DFB_NON_X11) && !defined(PX_PLATFORM_GENERIC_DFB)
787
+ #if !defined(PX_PLATFORM_DFB_NON_X11) && !defined(PX_PLATFORM_GENERIC_DFB) && !defined(PX_PLATFORM_WIN)
788
788
floatBytes_t fb = {.bytes =
789
789
{
790
790
opStream[i + 3 ], opStream[i + 2 ],
@@ -816,7 +816,7 @@ float pxPath::getFloatAt(const uint8_t *p)
816
816
return 0 ;
817
817
}
818
818
819
- #if !defined(PX_PLATFORM_DFB_NON_X11) && !defined(PX_PLATFORM_GENERIC_DFB)
819
+ #if !defined(PX_PLATFORM_DFB_NON_X11) && !defined(PX_PLATFORM_GENERIC_DFB) && !defined(PX_PLATFORM_WIN)
820
820
floatBytes_t fb = {.bytes =
821
821
{
822
822
p[3 ], p[2 ], p[1 ], p[0 ]
@@ -867,7 +867,7 @@ static point2d_t mapToEllipse(point2d_t xy, point2d_t rxy, a2cReal_t cosphi, a2c
867
867
const a2cReal_t xp = cosphi * xy.x - sinphi * xy.y ;
868
868
const a2cReal_t yp = sinphi * xy.x + cosphi * xy.y ;
869
869
870
- #if !defined(PX_PLATFORM_DFB_NON_X11) && !defined(PX_PLATFORM_GENERIC_DFB)
870
+ #if !defined(PX_PLATFORM_DFB_NON_X11) && !defined(PX_PLATFORM_GENERIC_DFB) && !defined(PX_PLATFORM_WIN)
871
871
return point2d_t ( { .x = xp + centerx,.y = yp + centery } );
872
872
#else
873
873
// support older toolchain
@@ -903,7 +903,7 @@ static uarc_t approxUnitArc(a2cReal_t ang1, a2cReal_t ang2)
903
903
const a2cReal_t x2 = cos (ang1 + ang2);
904
904
const a2cReal_t y2 = sin (ang1 + ang2);
905
905
906
- #if !defined(PX_PLATFORM_DFB_NON_X11) && !defined(PX_PLATFORM_GENERIC_DFB)
906
+ #if !defined(PX_PLATFORM_DFB_NON_X11) && !defined(PX_PLATFORM_GENERIC_DFB) && !defined(PX_PLATFORM_WIN)
907
907
return uarc_t ( {
908
908
.pt1 = point2d_t ( { .x = x1 - y1 * a , .y = y1 + x1 * a } ),
909
909
.pt2 = point2d_t ( { .x = x2 + y2 * a , .y = y2 - x2 * a } ),
@@ -999,7 +999,7 @@ static acenter_t getArcCenter( a2cReal_t px,
999
999
if (sweepFlag == 0.0 && ang2 > 0.0 ) { ang2 -= TAU; }
1000
1000
if (sweepFlag == 1.0 && ang2 < 0.0 ) { ang2 += TAU; }
1001
1001
1002
- #if !defined(PX_PLATFORM_DFB_NON_X11) && !defined(PX_PLATFORM_GENERIC_DFB)
1002
+ #if !defined(PX_PLATFORM_DFB_NON_X11) && !defined(PX_PLATFORM_GENERIC_DFB) && !defined(PX_PLATFORM_WIN)
1003
1003
return acenter_t ( { .c = point2d_t ( { .x = centerx,
1004
1004
.y = centery } ),
1005
1005
.ang1 = ang1,
@@ -1085,7 +1085,7 @@ static bcurves_t arcToBezier(a2cReal_t px, a2cReal_t py,
1085
1085
ang1 += ang2;
1086
1086
}
1087
1087
1088
- #if !defined(PX_PLATFORM_DFB_NON_X11) && !defined(PX_PLATFORM_GENERIC_DFB)
1088
+ #if !defined(PX_PLATFORM_DFB_NON_X11) && !defined(PX_PLATFORM_GENERIC_DFB) && !defined(PX_PLATFORM_WIN)
1089
1089
const point2d_t rxy = { .x = rx, .y = ry };
1090
1090
#else
1091
1091
// support older toolchain
@@ -1104,7 +1104,7 @@ static bcurves_t arcToBezier(a2cReal_t px, a2cReal_t py,
1104
1104
point2d_t xy2 = mapToEllipse (curve.pt2 , rxy, cosphi, sinphi, center.c .x , center.c .y );
1105
1105
point2d_t xy = mapToEllipse (curve.pt3 , rxy, cosphi, sinphi, center.c .x , center.c .y );
1106
1106
1107
- #if !defined(PX_PLATFORM_DFB_NON_X11) && !defined(PX_PLATFORM_GENERIC_DFB)
1107
+ #if !defined(PX_PLATFORM_DFB_NON_X11) && !defined(PX_PLATFORM_GENERIC_DFB) && !defined(PX_PLATFORM_WIN)
1108
1108
bcurves.push_back ( bcurve_t ( {
1109
1109
.xy1 = xy1,
1110
1110
.xy2 = xy2,
0 commit comments