@@ -864,6 +864,7 @@ static int _get_snap(GraphicsContext* self, enum e_quantize_mode* mode)
864
864
PyObject* path;
865
865
PyObject* transform;
866
866
PyObject* rgbFace;
867
+ float linewidth;
867
868
868
869
int n;
869
870
@@ -878,9 +879,10 @@ static int _get_snap(GraphicsContext* self, enum e_quantize_mode* mode)
878
879
return NULL ;
879
880
}
880
881
881
- if (!PyArg_ParseTuple (args, " OO |O" ,
882
+ if (!PyArg_ParseTuple (args, " OOf |O" ,
882
883
&path,
883
884
&transform,
885
+ &linewidth,
884
886
&rgbFace)) return NULL ;
885
887
886
888
if (rgbFace==Py_None) rgbFace = NULL ;
@@ -891,7 +893,7 @@ static int _get_snap(GraphicsContext* self, enum e_quantize_mode* mode)
891
893
0 ,
892
894
rect,
893
895
QUANTIZE_AUTO,
894
- CGContextGetLineWidth (self) ,
896
+ linewidth ,
895
897
rgbFace == NULL );
896
898
if (!iterator)
897
899
{
@@ -969,7 +971,7 @@ static int _get_snap(GraphicsContext* self, enum e_quantize_mode* mode)
969
971
0 ,
970
972
rect,
971
973
QUANTIZE_AUTO,
972
- CGContextGetLineWidth (self) ,
974
+ linewidth ,
973
975
0 );
974
976
if (!iterator)
975
977
{
@@ -995,6 +997,7 @@ static int _get_snap(GraphicsContext* self, enum e_quantize_mode* mode)
995
997
PyObject* marker_transform;
996
998
PyObject* path;
997
999
PyObject* transform;
1000
+ float linewidth;
998
1001
PyObject* rgbFace;
999
1002
1000
1003
int ok;
@@ -1015,11 +1018,12 @@ static int _get_snap(GraphicsContext* self, enum e_quantize_mode* mode)
1015
1018
return NULL ;
1016
1019
}
1017
1020
1018
- if (!PyArg_ParseTuple (args, " OOOO |O" ,
1021
+ if (!PyArg_ParseTuple (args, " OOOOf |O" ,
1019
1022
&marker_path,
1020
1023
&marker_transform,
1021
1024
&path,
1022
1025
&transform,
1026
+ &linewidth,
1023
1027
&rgbFace)) return NULL ;
1024
1028
1025
1029
if (rgbFace==Py_None) rgbFace = NULL ;
@@ -1046,7 +1050,7 @@ static int _get_snap(GraphicsContext* self, enum e_quantize_mode* mode)
1046
1050
0 ,
1047
1051
rect,
1048
1052
mode,
1049
- CGContextGetLineWidth (self) ,
1053
+ linewidth ,
1050
1054
0 );
1051
1055
if (!iterator)
1052
1056
{
0 commit comments