[Windows] SDL_GetDesktopDisplayMode and Missing shcore.dll |
ChliHug
|
SDL_GetDesktopDisplayMode returns 0 on success and -1 on failure. You're checking it the wrong way around.
The SDL error string is a bit of a curious thing. Generallly, you only need to pay attention to it if a function fails. It can probably be ignored otherwise. That's because some SDL functions may try different ways to complete the request and some of those ways may fail and set an error string. That doesn't mean the function fails though. |
|||||||||||
|