Fun vimix crow in About dialog

This commit is contained in:
Bruno Herbelin
2022-08-02 23:36:09 +02:00
parent d756fd4a29
commit 6712f1383e
2 changed files with 9 additions and 2 deletions

View File

@@ -1273,8 +1273,9 @@ void UserInterface::RenderAbout(bool* p_open)
return;
}
ImVec2 top = ImGui::GetCursorScreenPos();
#ifdef VIMIX_VERSION_MAJOR
ImGuiToolkit::PushFont(ImGuiToolkit::FONT_BOLD);
ImGuiToolkit::PushFont(ImGuiToolkit::FONT_LARGE);
ImGui::Text("%s %d.%d.%d", APP_NAME, VIMIX_VERSION_MAJOR, VIMIX_VERSION_MINOR, VIMIX_VERSION_PATCH);
ImGui::PopFont();
#else
@@ -1283,7 +1284,12 @@ void UserInterface::RenderAbout(bool* p_open)
ImGui::PopFont();
#endif
ImGui::Separator();
static unsigned int img_crow = 0;
if (img_crow == 0)
img_crow = Resource::getTextureImage("images/vimix_crow_white.png");
ImGui::SetCursorScreenPos(top);
ImGui::Image((void*)(intptr_t)img_crow, ImVec2(512, 340));
ImGui::Text("vimix performs graphical mixing and blending of\nseveral movie clips and computer generated graphics,\nwith image processing effects in real-time.");
ImGui::Text("\nvimix is licensed under GNU GPL version 3 or later.\n" UNICODE_COPYRIGHT " 2019-2022 Bruno Herbelin.");