9 hours ago, Rutin said:That's extremely odd. When I run your minimal code I get the same problem you're having, but when I add in:
screenSurface = SDL_GetWindowSurface(window); SDL_UpdateWindowSurface(window);
Everything works perfectly fine... Did you try to make a clean EMPTY project?
Follow this guide 100% then paste my code in and run it.
http://lazyfoo.net/tutorials/SDL/01_hello_SDL/windows/msvsnet2010u/index.php
If you're not using Visual Studio let me know.
If you're still getting the same problem, then I would strongly suggest uploading the project file and posting on the SDL forums, also stating Windows 7.
Just an FYI, I was using SDL2 2.0.7. Maybe there is an issue with 2.0.8? Try using 2.0.7 maybe?
Thanks, yeah I am using Visual Studio 2015, and I set my project settings like that. I even downloaded the source code and loaded the debug symbols from the PDB file so I can step into the SDL code itself. Still no luck. Tried 2.0.7 too and that didn't do it either. It's weird that it only seems to be certain resolutions that this happens for. I tried arbitrary ones too like 400x400 which worked. I'll give the SDL boards a try.