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 Forum Index
SDL
Simple Directmedia Layer Forums
SDL_GetWindowSize behaviour change in iOS 8.2
slimshader


Joined: 26 Apr 2013
Posts: 39
Hi,

until now (before ios sdk 8.2) SDL_CreateWindow() with the size 1024x768 and fullscreen flag true, on Retina devices a window would be created correctly but its size would be reported (using SDL_GetWindowSize) as 2048x1536. My app would then detect this sitation and assume that scaing is necessary as getting window of requested size was not possible. Now after rebuilding HEAD against sdk 8.2 SDL_CreateWindow() returns 1024x768. Is that desired? Must I change my code now or is it a bug in HEAD?
slimshader


Joined: 26 Apr 2013
Posts: 39
Update: SDL_GetDisplayBounds also reports 1024x768 on my Retina device (iPad Air) while previously it reported 2048x1536.

It is blocking a patch for my game so please please advise.