From af53c19949a8c32ec06ea00650a9dc675463b5a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emmanuel=20Beno=C3=AEt?= Date: Fri, 6 Oct 2017 15:52:34 +0200 Subject: [PATCH] Fixed problem with usage of latest version of Imgui --- utilities.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/utilities.cc b/utilities.cc index 04b5b08..aa7c9fa 100644 --- a/utilities.cc +++ b/utilities.cc @@ -4,9 +4,9 @@ void disableButton( ) { - ImGui::PushStyleColor( ImGuiCol_Button , ImColor( .3f , .3f , .3f ) ); - ImGui::PushStyleColor( ImGuiCol_ButtonHovered , ImColor( .3f , .3f , .3f ) ); - ImGui::PushStyleColor( ImGuiCol_ButtonActive , ImColor( .3f , .3f , .3f ) ); + ImGui::PushStyleColor( ImGuiCol_Button , ImVec4( .3 , .3 , .3 , 1 ) ); + ImGui::PushStyleColor( ImGuiCol_ButtonHovered , ImVec4( .3 , .3 , .3 , 1 ) ); + ImGui::PushStyleColor( ImGuiCol_ButtonActive , ImVec4( .3 , .3 , .3 , 1 ) ); } /*----------------------------------------------------------------------------*/