Commit f29559f9 authored by Gauthier Quesnel's avatar Gauthier Quesnel
Browse files

gui: fix linux warnings

parent 9b37920b
Pipeline #11563 passed with stage
in 1 minute and 9 seconds
......@@ -23,7 +23,7 @@ struct file_dialog
std::filesystem::path current;
std::filesystem::path selected;
std::u8string temp;
char8_t buffer[MAX_PATH];
char8_t buffer[512];
bool is_open = true;
......@@ -393,7 +393,7 @@ save_file_dialog(std::filesystem::path& out)
ImGui::InputText(
"File Name", (char*)fd.buffer, IM_ARRAYSIZE(fd.buffer));
ImGui::Text("Directory name: %s", fd.current.u8string().c_str());
ImGui::Text("Directory name: %s", (const char*)fd.current.u8string().c_str());
float width = ImGui::GetContentRegionAvailWidth();
ImGui::PushItemWidth(width);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment