Tell why the video mode couldn't be set
This commit is contained in:
@@ -48,7 +48,7 @@ BOOL sw_start(int width, int height, int req_depth, int FullScreen)
|
|||||||
SurfaceX = width; SurfaceY = height;
|
SurfaceX = width; SurfaceY = height;
|
||||||
surface = SDL_SetVideoMode(SurfaceX, SurfaceY, req_depth, flags);
|
surface = SDL_SetVideoMode(SurfaceX, SurfaceY, req_depth, flags);
|
||||||
if (surface == NULL) {
|
if (surface == NULL) {
|
||||||
fprintf (stderr, "Could not set %dx%d video mode.\n", SurfaceX, SurfaceY);
|
fprintf (stderr, "Could not set %dx%d video mode: %s\n", SurfaceX, SurfaceY, SDL_GetError ());
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user