From 1875abed91563f5a05955b4a2c109439955e46ee Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Thu, 30 Aug 2018 00:57:01 +0200 Subject: [PATCH] Fix obsolete enum. --- imguicolortextedit/TextEditor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imguicolortextedit/TextEditor.cpp b/imguicolortextedit/TextEditor.cpp index 5d9ba8a0..581b5164 100644 --- a/imguicolortextedit/TextEditor.cpp +++ b/imguicolortextedit/TextEditor.cpp @@ -416,7 +416,7 @@ void TextEditor::Render(const char* aTitle, const ImVec2& aSize, bool aBorder) auto xadv = (font->IndexAdvanceX['X']); mCharAdvance = ImVec2(io.FontGlobalScale * xadv, io.FontGlobalScale * font->FontSize + mLineSpacing); - ImGui::PushStyleColor(ImGuiCol_ChildWindowBg, ImGui::ColorConvertU32ToFloat4(mPalette[(int)PaletteIndex::Background])); + ImGui::PushStyleColor(ImGuiCol_ChildBg, ImGui::ColorConvertU32ToFloat4(mPalette[(int)PaletteIndex::Background])); ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(0.0f, 0.0f)); ImGui::BeginChild(aTitle, aSize, aBorder, ImGuiWindowFlags_HorizontalScrollbar | ImGuiWindowFlags_NoMove);