SDL 1.3 and XCode 4.5

So, iOS 6 is out and - in order to test my app on a physical device - I updated XCode to version 4.5 this morning.
Before that, almost everything worked just fine, using SDL 1.3.

Now I have a good number of issues to deal with:

  • On simulator, the screen is rendered in portrait mode regardless of the width/height ratio I set in SDL_CreateWindow().
    I call:

Code:

#define GAME_TITLE “MySDLGame”

const int SCREEN_W = 480;
const int SCREEN_H = 320;

//[…]

window = SDL_CreateWindow(GAME_TITLE, 0, 0, SCREEN_W, SCREEN_H, SDL_WINDOW_SHOWN|SDL_WINDOW_BORDERLESS|SDL_WINDOW_FULLSCREEN);

This is the result, while displaying the initial logo (which should be, obviously, fullscreen):

[Image: http://imageshack.us/a/img191/4209/problema4dot5.png ]

On device, however, this works fine.

  • While debugging on device, debuggers acts crazy, jumping between lines of code totally unrelated to each other and displaying weird variable values. However, if I place no breakpoints, everything seems to work fine.

Anyone had similar problems? Are there known fixes or workarounds?

Thanks in advance :smiley:

SDL rotation on iOS has been recently updated so the best suggestion is to
try the latest development version from HG (and get rid of any sdl-1.3
references, sdl-2 ftw).

Cheers,
VittorioOn Wed, Sep 26, 2012 at 5:11 PM, Khuran wrote:

**
So, iOS 6 is out and - in order to test my app on a physical device - I
updated XCode to version 4.5 this morning.
Before that, almost everything worked just fine, using SDL 1.3.

Now I have a good number of issues to deal with:

  • On simulator, the screen is rendered in portrait mode regardless of the
    width/height ratio I set in SDL_CreateWindow().
    I call:

Code:

#define GAME_TITLE “MySDLGame”

const int SCREEN_W = 480;
const int SCREEN_H = 320;

//[…]

window = SDL_CreateWindow(GAME_TITLE, 0, 0, SCREEN_W, SCREEN_H,
SDL_WINDOW_SHOWN|SDL_WINDOW_BORDERLESS|SDL_WINDOW_FULLSCREEN);

This is the result, while displaying the initial logo (which should be,
obviously, fullscreen):

On device, however, this works fine.

  • While debugging on device, debuggers acts crazy, jumping between lines
    of code totally unrelated to each other and displaying weird variable
    values. However, if I place no breakpoints, everything seems to work fine.

Anyone had similar problems? Are there known fixes or workarounds?

Thanks in advance [image: Very Happy]


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Thank you very much! :smiley: