Añadido SDL_GetError a SDL_SetWindowDisplayMode

This commit is contained in:
2024-09-10 12:56:25 +02:00
parent a5060b928f
commit 762a819711

View File

@@ -178,7 +178,14 @@ void Screen::setVideoMode(int videoMode)
DM.w = 1024;
DM.h = 600;
DM.refresh_rate = 60;
SDL_SetWindowDisplayMode(window, &DM);
if (!SDL_SetWindowDisplayMode(window, &DM))
{
stc::cout << SDL_GetError() << std::endl;
}
else
{
stc::cout << "Changed windows display mode" << std::endl;
}
#endif
// Oculta el puntero