Añadida info de debug: resolucion de la pantalla

This commit is contained in:
2024-09-09 18:41:03 +02:00
parent 83fb2f30ba
commit 8465ee87fb

View File

@@ -98,7 +98,15 @@ void Screen::blit()
// Pinta en pantalla el contador de FPS
if (showFps)
{
dbg_print(0, 0, std::to_string(fps).c_str(), 255, 255, 255);
// FPS
const std::string fpstext = std::to_string(fps) + " FPS";
dbg_print(0, 0, fpstext.c_str(), 255, 255, 255);
// Resolution
SDL_DisplayMode DM;
SDL_GetCurrentDisplayMode(0, &DM);
const std::string resolution = std::to_string(DM.w) + " X " + std::to_string(DM.h);
dbg_print(0, 8, resolution.c_str(), 255, 255, 255);
}
#ifdef NO_SHADERS