Fixed missing error message if SDL_GetDisplayDPI() is unsupported.
authorPhilipp Wiesemann
Tue, 10 May 2016 21:14:36 +0200
changeset 101662393160743ca
parent 10165 b30e5eed2600
child 10167 d3db276c1fa6
Fixed missing error message if SDL_GetDisplayDPI() is unsupported.
src/video/SDL_video.c
     1.1 --- a/src/video/SDL_video.c	Tue May 10 21:13:58 2016 +0200
     1.2 +++ b/src/video/SDL_video.c	Tue May 10 21:14:36 2016 +0200
     1.3 @@ -719,7 +719,9 @@
     1.4  		if (_this->GetDisplayDPI(_this, display, ddpi, hdpi, vdpi) == 0) {
     1.5  			return 0;
     1.6  		}
     1.7 -	}
     1.8 +    } else {
     1.9 +        return SDL_Unsupported();
    1.10 +    }
    1.11  
    1.12  	return -1;
    1.13  }