The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.
SDL
Simple Directmedia Layer Forums
Could someone with a retina Mac please try this code?
oviano
Joined: 05 Mar 2016
Posts: 24
Posted: Wed Jan 04, 2017 12:33 pm
It should draw a small black rectangle towards the top left of the screen, on a background that alternates between red, green and blue.
The problem is it (and things like drawing textures) only works for me if SDL_WINDOW_ALLOW_HIGHDPI is left commented out during window creation.
I'm trying to establish if it's a peculiarity with my machine or a bug in SDL.
I've tried debugging it a little but none of the lower level GL_XXX functions are failing, no errors are produced, yet the SDL_RenderFillRect doesn't draw anything?