mirror of
https://github.com/niellun/FastCarPlay.git
synced 2026-06-07 09:38:25 +02:00
more infor
This commit is contained in:
+7
-3
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user