Tell why the video mode couldn't be set

This commit is contained in:
theoddone33
2002-11-05 20:45:21 +00:00
parent b4ccda8cb2
commit a9793331c6

View File

@@ -48,7 +48,7 @@ BOOL sw_start(int width, int height, int req_depth, int FullScreen)
SurfaceX = width; SurfaceY = height;
surface = SDL_SetVideoMode(SurfaceX, SurfaceY, req_depth, flags);
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;
}