Windows: Fixed missing error message if SDL_GetDisplayDPI() failed.
authorPhilipp Wiesemann
Fri, 20 May 2016 22:15:58 +0200
changeset 10174284022a7f51e
parent 10173 5b0a869a9946
child 10175 fcf0d3ca1fa2
Windows: Fixed missing error message if SDL_GetDisplayDPI() failed.
src/video/windows/SDL_windowsmodes.c
     1.1 --- a/src/video/windows/SDL_windowsmodes.c	Fri May 20 22:15:28 2016 +0200
     1.2 +++ b/src/video/windows/SDL_windowsmodes.c	Fri May 20 22:15:58 2016 +0200
     1.3 @@ -342,7 +342,7 @@
     1.4          *vdpi = data->VertDPI;
     1.5      }
     1.6  
     1.7 -    return data->DiagDPI != 0.0f ? 0 : -1;
     1.8 +    return data->DiagDPI != 0.0f ? 0 : SDL_SetError("Couldn't get DPI");
     1.9  }
    1.10  
    1.11  int