@@ -878,7 +878,7 @@ struct Example:
878878 for (int i = 0 ; i < linkCount; ++i) ImGui::Text (" Link (%p)" , selectedLinks[i].AsPointer ());
879879 ImGui::Unindent ();
880880
881- if (ImGui::IsKeyPressed (ImGui::GetKeyIndex ( ImGuiKey_Z) ))
881+ if (ImGui::IsKeyPressed (ImGuiKey_Z))
882882 for (auto & link : m_Links)
883883 ed::Flow (link.ID );
884884
@@ -1108,11 +1108,7 @@ struct Example:
11081108
11091109 ed::PushStyleVar (ed::StyleVar_PinArrowSize, 10 .0f );
11101110 ed::PushStyleVar (ed::StyleVar_PinArrowWidth, 10 .0f );
1111- #if IMGUI_VERSION_NUM > 18101
11121111 ed::PushStyleVar (ed::StyleVar_PinCorners, ImDrawFlags_RoundCornersBottom);
1113- #else
1114- ed::PushStyleVar (ed::StyleVar_PinCorners, 12 );
1115- #endif
11161112 ed::BeginPin (pin.ID , ed::PinKind::Input);
11171113 ed::PinPivotRect (inputsRect.GetTL (), inputsRect.GetBR ());
11181114 ed::PinRect (inputsRect.GetTL (), inputsRect.GetBR ());
@@ -1154,11 +1150,7 @@ struct Example:
11541150 ImGui::Spring (1 , 0 );
11551151 outputsRect = ImGui_GetItemRect ();
11561152
1157- #if IMGUI_VERSION_NUM > 18101
11581153 ed::PushStyleVar (ed::StyleVar_PinCorners, ImDrawFlags_RoundCornersTop);
1159- #else
1160- ed::PushStyleVar (ed::StyleVar_PinCorners, 3 );
1161- #endif
11621154 ed::BeginPin (pin.ID , ed::PinKind::Output);
11631155 ed::PinPivotRect (outputsRect.GetTL (), outputsRect.GetBR ());
11641156 ed::PinRect (outputsRect.GetTL (), outputsRect.GetBR ());
@@ -1193,13 +1185,8 @@ struct Example:
11931185 // drawList->PathStroke(col, true, thickness);
11941186 // };
11951187
1196- #if IMGUI_VERSION_NUM > 18101
11971188 const auto topRoundCornersFlags = ImDrawFlags_RoundCornersTop;
11981189 const auto bottomRoundCornersFlags = ImDrawFlags_RoundCornersBottom;
1199- #else
1200- const auto topRoundCornersFlags = 1 | 2 ;
1201- const auto bottomRoundCornersFlags = 4 | 8 ;
1202- #endif
12031190
12041191 drawList->AddRectFilled (inputsRect.GetTL () + ImVec2 (0 , 1 ), inputsRect.GetBR (),
12051192 IM_COL32 ((int )(255 * pinBackground.x ), (int )(255 * pinBackground.y ), (int )(255 * pinBackground.z ), inputAlpha), 4 .0f , bottomRoundCornersFlags);
@@ -1263,11 +1250,7 @@ struct Example:
12631250 inputsRect.Min .y -= padding;
12641251 inputsRect.Max .y -= padding;
12651252
1266- #if IMGUI_VERSION_NUM > 18101
12671253 const auto allRoundCornersFlags = ImDrawFlags_RoundCornersAll;
1268- #else
1269- const auto allRoundCornersFlags = 15 ;
1270- #endif
12711254 // ed::PushStyleVar(ed::StyleVar_PinArrowSize, 10.0f);
12721255 // ed::PushStyleVar(ed::StyleVar_PinArrowWidth, 10.0f);
12731256 ed::PushStyleVar (ed::StyleVar_PinCorners, allRoundCornersFlags);
@@ -1324,13 +1307,8 @@ struct Example:
13241307 outputsRect.Min .y += padding;
13251308 outputsRect.Max .y += padding;
13261309
1327- #if IMGUI_VERSION_NUM > 18101
13281310 const auto allRoundCornersFlags = ImDrawFlags_RoundCornersAll;
13291311 const auto topRoundCornersFlags = ImDrawFlags_RoundCornersTop;
1330- #else
1331- const auto allRoundCornersFlags = 15 ;
1332- const auto topRoundCornersFlags = 3 ;
1333- #endif
13341312
13351313 ed::PushStyleVar (ed::StyleVar_PinCorners, topRoundCornersFlags);
13361314 ed::BeginPin (pin.ID , ed::PinKind::Output);
0 commit comments