Show video driver in ImGui backend

This commit is contained in:
Zachary Hall 2024-12-29 07:48:26 -08:00
parent e3de8516c0
commit c6ec09cd14

View file

@ -751,6 +751,8 @@ void MainLoop::GuiFunction() {
ImGui::SetCursorPosX((ImGui::GetWindowWidth() - ImGui::GetFont()->CalcTextSizeA(ImGui::GetFontSize(), FLT_MAX, 0.0f, VER_STRING.c_str()).x) / 2.0f); ImGui::SetCursorPosX((ImGui::GetWindowWidth() - ImGui::GetFont()->CalcTextSizeA(ImGui::GetFontSize(), FLT_MAX, 0.0f, VER_STRING.c_str()).x) / 2.0f);
ImGui::TextUnformatted(VER_STRING.c_str()); ImGui::TextUnformatted(VER_STRING.c_str());
ImGui::NewLine(); ImGui::NewLine();
ImGui::Text("SDL video driver: %s", SDL_GetCurrentVideoDriver());
ImGui::NewLine();
auto &license_data = get_license_data(); auto &license_data = get_license_data();
// Left // Left
static LicenseData selected = *license_data.begin(); static LicenseData selected = *license_data.begin();