mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-26 20:25:34 +08:00
Solve the warning of method ImGui::Text()
This commit is contained in:
@@ -17,7 +17,7 @@ int Render::RemoteWindow() {
|
||||
|
||||
ImGui::SetWindowFontScale(1.0f);
|
||||
ImGui::Text(
|
||||
localization::remote_desktop[localization_language_index_].c_str());
|
||||
"%s", localization::remote_desktop[localization_language_index_].c_str());
|
||||
|
||||
ImGui::Spacing();
|
||||
|
||||
@@ -27,7 +27,8 @@ int Render::RemoteWindow() {
|
||||
ImGuiChildFlags_Border);
|
||||
{
|
||||
ImGui::SetWindowFontScale(0.5f);
|
||||
ImGui::Text(localization::remote_id[localization_language_index_].c_str());
|
||||
ImGui::Text("%s",
|
||||
localization::remote_id[localization_language_index_].c_str());
|
||||
|
||||
ImGui::Spacing();
|
||||
ImGui::SetNextItemWidth(IPUT_WINDOW_WIDTH);
|
||||
|
||||
Reference in New Issue
Block a user