Añadido SDL_GetError a SDL_SetWindowDisplayMode
This commit is contained in:
1 parent
a5060b928f
commit
762a819711
1 file changed
+8
-1
@@ -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