refactor: Change log string and fix imgui warning
This commit is contained in:
parent
fe77dedca7
commit
4ff8c6f880
@ -7,13 +7,13 @@
|
|||||||
|
|
||||||
using std::string;
|
using std::string;
|
||||||
|
|
||||||
string log;
|
string log_message;
|
||||||
bool show_demo_window = true;
|
bool show_demo_window = true;
|
||||||
bool show_another_window = false;
|
bool show_another_window = false;
|
||||||
ImVec4 clear_color = ImVec4(0.45f, 0.55f, 0.60f, 1.00f);
|
ImVec4 clear_color = ImVec4(0.45f, 0.55f, 0.60f, 1.00f);
|
||||||
|
|
||||||
void debug(string message){
|
void debug(string message){
|
||||||
log = message;
|
log_message = message;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool open_main = true;
|
bool open_main = true;
|
||||||
@ -65,7 +65,7 @@ void show_console(){
|
|||||||
debug("Debug message");
|
debug("Debug message");
|
||||||
}
|
}
|
||||||
|
|
||||||
ImGui::Text(log.c_str());
|
ImGui::Text("%s", log_message.c_str());
|
||||||
|
|
||||||
ImGui::End();
|
ImGui::End();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user