![]() |
Crash in iPad with iOS 3.2 (contentScaleFactor unimplemtd) | ![]() |
josebagar
![]() |
![]() |
Hi!
I just found that SDL is crashing in the iPad simulator for iOS 3.2 but not for iOS 4.2 or over when compiling with Xcode 4.0.2. The Xcode debugger points to line 127 in video/uikit/SDL_uikitopenglview.m as the line that triggers the crash. On those lines one can find:
I'm no expert in Objective-C, but I believe the following code to be more correct (it doesn't crash for me):
I've filed a bug with this same info in Bugzilla: http://bugzilla.libsdl.org/show_bug.cgi?id=1239 |
||||||||||||||
|
![]() |
Crash in iPad with iOS 3.2 | ![]() |
Eric Wing
Guest
![]() |
![]() |
I'm speaking from memory at the moment, but I think you want to use contentScaleFactor exclusively; don't use scale.
Basically: float my_scale_factor = 1.0; if([your_ui_view respondsToSelector:@selector(contentScaleFactor)] { my_scale_factor = [your_ui_view contentScaleFactor]; } -Eric On Thu, Jun 30, 2011 at 7:07 PM, josebagar wrote:
-- Beginning iPhone Games Development http://playcontrol.net/iphonegamebook/ |
||||||||||||
|
![]() |
![]() |
josebagar
![]() |
![]() |
Sorry, I didn't explain myself correctly.
The crash occurs in SDL code (here). I'm working with an interpreted game engine built on top of SDL and the crash occurs when setting the video mode, I'm not writing any Objective-C code myself. Joseba |
||||||||||
|
![]() |
![]() |