1
0
mirror of https://github.com/ocornut/imgui.git synced 2024-12-04 12:08:03 +01:00

Merge remote-tracking branch 'origin' into 2015-03-antialiased-primitives

Conflicts:
	imgui.cpp
This commit is contained in:
ocornut 2015-04-09 22:56:13 +01:00
commit dbc9b2ec9b

View File

@ -8002,7 +8002,6 @@ void ImDrawList::Rect(const ImVec2& a, const ImVec2& b, float rounding, int roun
r = ImMin(r, fabsf(b.x-a.x) * ( ((rounding_corners&(1|2))==(1|2)) || ((rounding_corners&(4|8))==(4|8)) ? 0.5f : 1.0f ) - 1.0f);
r = ImMin(r, fabsf(b.y-a.y) * ( ((rounding_corners&(1|8))==(1|8)) || ((rounding_corners&(2|4))==(2|4)) ? 0.5f : 1.0f ) - 1.0f);
const ImVec2 uv = GImGui->FontTexUvWhitePixel;
if (r == 0.0f || rounding_corners == 0)
{
LineTo(ImVec2(a.x,a.y));