Fix UV mapping for logo image
This commit is contained in:
@@ -285,7 +285,7 @@ void draw_panel_window(UserData& user_data)
|
|||||||
|
|
||||||
ImGui::Begin("Panel");
|
ImGui::Begin("Panel");
|
||||||
|
|
||||||
if (logo) ImGui::Image(logo->get_id(), {50.0f, 50.0f});
|
if (logo) ImGui::Image(logo->get_id(), {50.0f, 50.0f}, {0.0f, 1.0f}, {1.0f, 0.0f});
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
ImGui::SetCursorPosY(ImGui::GetCursorPosY() + (50.0f - ImGui::GetTextLineHeight()) * 0.5f);
|
ImGui::SetCursorPosY(ImGui::GetCursorPosY() + (50.0f - ImGui::GetTextLineHeight()) * 0.5f);
|
||||||
ImGui::Text("Fan Engine");
|
ImGui::Text("Fan Engine");
|
||||||
|
|||||||
Reference in New Issue
Block a user