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
Black border on IOS
Alexander Chaliovski
Guest

Hi ,

When I call SDL_CreateWindow on IOS I got black border. I tried different settings no matter what I do I cannot get into proper full screen on the simulator.

It works properly only with the 3.5 inch Iphone simulator but not with the 4 inch and the Ipad.

I am using SDL 2.0.3 with IOS 7.0


This code works fine on the 3.5 inch Iphone but not with the other devices.


SDL_DisplayMode displayMode;
SDL_GetDesktopDisplayMode(0, &displayMode);

SDL_CreateWindow("Game",
SDL_WINDOWPOS_CENTERED,
SDL_WINDOWPOS_CENTERED,
displayMode.w ,
displayMode.h,
SDL_WINDOW_SHOWN | SDL_WINDOW_BORDERLESS | SDL_WINDOW_RESIZABLE);



Thanks in advance,

Alex
Black border on IOS
Alexander Chaliovski
Guest

For Anyone having this issue you need to specify a launch image with the retina resolution in order to support retina devices.

It seems that IOS doesn't obey fully the width and height settings in the SDL_CreateWindow .