diff --git a/Draw-List.md b/Draw-List.md index d781fbc..5211e50 100644 --- a/Draw-List.md +++ b/Draw-List.md @@ -34,12 +34,9 @@ Applies for `AddRect()`, `AddRectFilled()`, and `PathRect()`. - **ImDrawFlags_RoundCornersNone**: disable rounding - **ImDrawFlags_RoundCornersAll**: round all corners -When not specified and `rounding` > 0, the default is **ImDrawFlags_RoundCornersAll**. Use **ImDrawFlags_RoundCornersNone** to disable roudning even if `rounding` is specified. The rounding flags cam be combined to round any combination of corners. The following common combinations are defined for cenvenience: +When not specified and `rounding` > 0, the default is **ImDrawFlags_RoundCornersAll**. Use **ImDrawFlags_RoundCornersNone** to disable roudning even if `rounding` is specified. The rounding flags cam be combined to round any combination of corners. -- **ImDrawFlags_RoundCornersTop**: round top left and right corners -- **ImDrawFlags_RoundCornersBottom**: round bottom left and right corners -- **ImDrawFlags_RoundCornersLeft**: round left top and bottom corners -- **ImDrawFlags_RoundCornersRight**: round right top and bottom corners +The following common combinations are defined for convenience: **ImDrawFlags_RoundCornersTop**, **ImDrawFlags_RoundCornersBottom**, **ImDrawFlags_RoundCornersLeft**, **ImDrawFlags_RoundCornersRight**. ![Corner rounding](drawlist/rect_corner_rounding.svg) @@ -112,7 +109,7 @@ If you need to draw a continuous line, prefer to use `AddPolyline()` or `PathStr
🚧 Changes in version 1.93.0: removed +0.5px offset from `AddLine()` + how to switch to `AddLineH()/`AddLineV()` -Before: `AddLine()` used to have 0.5px offset applied to the end points. Together with no-AA line ends, the line would render as if the points were pixel center coordinates. Sometime it worked, and sometimes it did not and it was hard to reason why. +
Before: `AddLine()` used to have 0.5px offset applied to the end points. Together with no-AA line ends, the line would render as if the points were pixel center coordinates. Sometime it worked, and sometimes it did not and it was hard to reason why. After: **the default stroke position is Center. The 0.5px offset is now removed, so `AddLine()` works the same way as a path with 2 points. Uses of `AddLine()` should be audited and any compensation for the 0.5px offset can be removed.**