@@ -212,12 +212,12 @@ private static RGraphicsPath GetRoundedBorderPath(RGraphics g, Border border, Cs
212212 path . Start ( r . Left + b . ActualBorderLeftWidth / 2 , r . Top + b . ActualBorderTopWidth / 2 + b . ActualCornerNw ) ;
213213
214214 if ( b . ActualCornerNw > 0 )
215- path . ArcTo ( r . Left + b . ActualBorderLeftWidth / 2 + b . ActualCornerNw , r . Top + b . ActualBorderTopWidth / 2 , b . ActualCornerNw , 180 , 90 ) ;
215+ path . ArcTo ( r . Left + b . ActualBorderLeftWidth / 2 + b . ActualCornerNw , r . Top + b . ActualBorderTopWidth / 2 , b . ActualCornerNw , RGraphicsPath . Corner . TopLeft ) ;
216216
217217 path . LineTo ( r . Right - b . ActualBorderRightWidth / 2 - b . ActualCornerNe , r . Top + b . ActualBorderTopWidth / 2 ) ;
218218
219219 if ( b . ActualCornerNe > 0 )
220- path . ArcTo ( r . Right - b . ActualBorderRightWidth / 2 , r . Top + b . ActualBorderTopWidth / 2 + b . ActualCornerNe , b . ActualCornerNe , 270 , 90 ) ;
220+ path . ArcTo ( r . Right - b . ActualBorderRightWidth / 2 , r . Top + b . ActualBorderTopWidth / 2 + b . ActualCornerNe , b . ActualCornerNe , RGraphicsPath . Corner . TopRight ) ;
221221 }
222222 break ;
223223 case Border . Bottom :
@@ -227,12 +227,12 @@ private static RGraphicsPath GetRoundedBorderPath(RGraphics g, Border border, Cs
227227 path . Start ( r . Right - b . ActualBorderRightWidth / 2 , r . Bottom - b . ActualBorderBottomWidth / 2 - b . ActualCornerSe ) ;
228228
229229 if ( b . ActualCornerSe > 0 )
230- path . ArcTo ( r . Right - b . ActualBorderRightWidth / 2 - b . ActualCornerSe , r . Bottom - b . ActualBorderBottomWidth / 2 , b . ActualCornerSe , 0 , 90 ) ;
230+ path . ArcTo ( r . Right - b . ActualBorderRightWidth / 2 - b . ActualCornerSe , r . Bottom - b . ActualBorderBottomWidth / 2 , b . ActualCornerSe , RGraphicsPath . Corner . BottomRight ) ;
231231
232232 path . LineTo ( r . Left + b . ActualBorderLeftWidth / 2 + b . ActualCornerSw , r . Bottom - b . ActualBorderBottomWidth / 2 ) ;
233233
234234 if ( b . ActualCornerSw > 0 )
235- path . ArcTo ( r . Left + b . ActualBorderLeftWidth / 2 , r . Bottom - b . ActualBorderBottomWidth / 2 - b . ActualCornerSw , b . ActualCornerSw , 90 , 90 ) ;
235+ path . ArcTo ( r . Left + b . ActualBorderLeftWidth / 2 , r . Bottom - b . ActualBorderBottomWidth / 2 - b . ActualCornerSw , b . ActualCornerSw , RGraphicsPath . Corner . BottomLeft ) ;
236236 }
237237 break ;
238238 case Border . Right :
@@ -245,12 +245,12 @@ private static RGraphicsPath GetRoundedBorderPath(RGraphics g, Border border, Cs
245245 path . Start ( r . Right - b . ActualBorderRightWidth / 2 - ( noTop ? b . ActualCornerNe : 0 ) , r . Top + b . ActualBorderTopWidth / 2 + ( noTop ? 0 : b . ActualCornerNe ) ) ;
246246
247247 if ( b . ActualCornerNe > 0 && noTop )
248- path . ArcTo ( r . Right - b . ActualBorderLeftWidth / 2 , r . Top + b . ActualBorderTopWidth / 2 + b . ActualCornerNe , b . ActualCornerNe , 270 , 90 ) ;
248+ path . ArcTo ( r . Right - b . ActualBorderLeftWidth / 2 , r . Top + b . ActualBorderTopWidth / 2 + b . ActualCornerNe , b . ActualCornerNe , RGraphicsPath . Corner . TopRight ) ;
249249
250250 path . LineTo ( r . Right - b . ActualBorderRightWidth / 2 , r . Bottom - b . ActualBorderBottomWidth / 2 - b . ActualCornerSe ) ;
251251
252252 if ( b . ActualCornerSe > 0 && noBottom )
253- path . ArcTo ( r . Right - b . ActualBorderRightWidth / 2 - b . ActualCornerSe , r . Bottom - b . ActualBorderBottomWidth / 2 , b . ActualCornerSe , 0 , 90 ) ;
253+ path . ArcTo ( r . Right - b . ActualBorderRightWidth / 2 - b . ActualCornerSe , r . Bottom - b . ActualBorderBottomWidth / 2 , b . ActualCornerSe , RGraphicsPath . Corner . BottomRight ) ;
254254 }
255255 break ;
256256 case Border . Left :
@@ -263,12 +263,12 @@ private static RGraphicsPath GetRoundedBorderPath(RGraphics g, Border border, Cs
263263 path . Start ( r . Left + b . ActualBorderLeftWidth / 2 + ( noBottom ? b . ActualCornerSw : 0 ) , r . Bottom - b . ActualBorderBottomWidth / 2 - ( noBottom ? 0 : b . ActualCornerSw ) ) ;
264264
265265 if ( b . ActualCornerSw > 0 && noBottom )
266- path . ArcTo ( r . Left + b . ActualBorderLeftWidth / 2 , r . Bottom - b . ActualBorderBottomWidth / 2 - b . ActualCornerSw , b . ActualCornerSw , 90 , 90 ) ;
266+ path . ArcTo ( r . Left + b . ActualBorderLeftWidth / 2 , r . Bottom - b . ActualBorderBottomWidth / 2 - b . ActualCornerSw , b . ActualCornerSw , RGraphicsPath . Corner . BottomLeft ) ;
267267
268268 path . LineTo ( r . Left + b . ActualBorderLeftWidth / 2 , r . Top + b . ActualBorderTopWidth / 2 + b . ActualCornerNw ) ;
269269
270270 if ( b . ActualCornerNw > 0 && noTop )
271- path . ArcTo ( r . Left + b . ActualBorderLeftWidth / 2 + b . ActualCornerNw , r . Top + b . ActualBorderTopWidth / 2 , b . ActualCornerNw , 180 , 90 ) ;
271+ path . ArcTo ( r . Left + b . ActualBorderLeftWidth / 2 + b . ActualCornerNw , r . Top + b . ActualBorderTopWidth / 2 , b . ActualCornerNw , RGraphicsPath . Corner . TopLeft ) ;
272272 }
273273 break ;
274274 }
0 commit comments