more infor

This commit is contained in:
Niellune
2026-03-28 01:57:36 +02:00
parent 24c346b763
commit 7fe1e5f751
2 changed files with 13 additions and 3 deletions
+7 -3
View File
@@ -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)
+6
View File
@@ -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;
}