Añadida info de debug: resolucion de la pantalla
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user