diff options
-rw-r--r-- | markdown.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/markdown.cpp b/markdown.cpp index e61601d..ddad512 100644 --- a/markdown.cpp +++ b/markdown.cpp @@ -1,6 +1,5 @@ -#include <stdio.h> - #include <fstream> +#include <iostream> #include <iterator> #include <string> @@ -38,7 +37,7 @@ struct Markdown : public imgui_md static void glfw_error_callback(int error, const char * description) { - fprintf(stderr, "glfw (%d): %s\n", error, description); + std::cerr << "glfw (" << error << "): " << description << std::endl; } static void markdown(const char * str, const char * str_end) @@ -108,7 +107,8 @@ int main(int argc, char ** argv) ImGui::Begin( "Markdown", nullptr, - ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoBackground | ImGuiWindowFlags_NoSavedSettings + ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoMove | + ImGuiWindowFlags_NoBackground | ImGuiWindowFlags_NoSavedSettings ); markdown(text.data(), text.data() + text.size()); ImGui::End(); |