From 7fe1e5f751c18a2a036970953bf1ce06ac92354c Mon Sep 17 00:00:00 2001 From: Niellune Date: Sat, 28 Mar 2026 01:57:36 +0200 Subject: [PATCH] more infor --- src/application.cpp | 10 +++++++--- src/interface.cpp | 6 ++++++ 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/src/application.cpp b/src/application.cpp index 689de00..7076d45 100644 --- a/src/application.cpp +++ b/src/application.cpp @@ -490,9 +490,13 @@ const std::string Application::status() const } out << " " << SDL_GetCurrentAudioDriver(); - out << "BACKENDS:"; - for (int i = 0; i < SDL_GetNumVideoDrivers(); ++i) - out << " " << SDL_GetVideoDriver(i); + out << "\nBACKENDS:"; + for (int i = 0; i < SDL_GetNumRenderDrivers(); ++i) + { + SDL_RendererInfo info; + SDL_GetRenderDriverInfo(i, &info); + out << " " << info.name; + } int displayIndex = SDL_GetWindowDisplayIndex(window); if (displayIndex >= 0) diff --git a/src/interface.cpp b/src/interface.cpp index bce80cc..cc67421 100644 --- a/src/interface.cpp +++ b/src/interface.cpp @@ -87,6 +87,12 @@ bool Interface::drawHome(bool force, int state, std::string name) if (drawText) _textStatus.draw(_renderer, (width - _textStatus.width) / 2, height * 0.85 - _textStatus.height); + if (_debug) + { + drawDebug(); + _debug = false; + } + SDL_RenderPresent(_renderer); return true; }