Adding Git tags info in About Vimix

This commit is contained in:
Bruno Herbelin
2023-04-13 23:17:58 +02:00
parent 6ec8edd5e2
commit f25a1b70f3
2 changed files with 7 additions and 0 deletions

View File

@@ -28,6 +28,7 @@ if(GIT_EXECUTABLE)
else() else()
set(VIMIX_VERSION_PATCH "0") set(VIMIX_VERSION_PATCH "0")
endif() endif()
add_definitions(-DVIMIX_GIT="${GIT_DESCRIBE_VERSION}")
add_definitions(-DVIMIX_VERSION_MAJOR=${VIMIX_VERSION_MAJOR}) add_definitions(-DVIMIX_VERSION_MAJOR=${VIMIX_VERSION_MAJOR})
add_definitions(-DVIMIX_VERSION_MINOR=${VIMIX_VERSION_MINOR}) add_definitions(-DVIMIX_VERSION_MINOR=${VIMIX_VERSION_MINOR})
add_definitions(-DVIMIX_VERSION_PATCH=${VIMIX_VERSION_PATCH}) add_definitions(-DVIMIX_VERSION_PATCH=${VIMIX_VERSION_PATCH})

View File

@@ -1521,6 +1521,12 @@ void UserInterface::RenderAbout(bool* p_open)
ImGui::PopFont(); ImGui::PopFont();
#endif #endif
#ifdef VIMIX_GIT
ImGuiToolkit::PushFont(ImGuiToolkit::FONT_ITALIC);
ImGui::Text(VIMIX_GIT);
ImGui::PopFont();
#endif
static unsigned int img_crow = 0; static unsigned int img_crow = 0;
if (img_crow == 0) if (img_crow == 0)
img_crow = Resource::getTextureImage("images/vimix_crow_white.png"); img_crow = Resource::getTextureImage("images/vimix_crow_white.png");