Añadido SDL_GetError a SDL_SetWindowDisplayMode
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user