Rakashazi / emu-ex-plus-alpha

Multi-platform computer & game console emulation system including supporting code (EmuFramework) and core engine (Imagine)
GNU General Public License v3.0
717 stars 153 forks source link

[iOS] Screen rotation issues #124

Closed yoshisuga closed 2 years ago

yoshisuga commented 6 years ago

On the iPhone XS Max, the screen size doesn't appear to be correct on startup and rotation results in some further mis-sizing and rotating.

I found build instructions to build for iOS in another issue and was super helpful: https://github.com/thededman/emu-ex-plus-alpha/wiki/emu-ex-plus-alpha-How-to-build-(MacOSX--XCode-Only)

I went down the rabbit hole to see how this worked, and ended up at the cross-platform imagine framework. It looks like it's like SDL in that it implements the cocoa touch api's at the platform level.

I'm guessing the IOSWindow::updateContentRect method in imagine/src/base/iphone/IOSWindow.mm might be the cause. I'd like to fix it but is there a way to attach a debugger to this? It'd be nice to be able to step through without having to wait and rebuild the base stack every time.

Rakashazi commented 6 years ago

I haven't yet tested on the iPhone XS Max, but the recent commit has new framebuffer handling code for iOS that may or may not help the issue. Let me know if there's any change with it.

ck16 commented 6 years ago

I can confirm the screen rotation issues still exist on an iPhone XS Max (iOS 12 and 12.0.1) with all emulators (except C64.emu which I'm not able to run).

yoshisuga commented 5 years ago

I got around the screen rotation issues by selecting landscape orientations only in the "Deployment Info" section when configuring the target in xcode. This makes it work only in landscape mode, but it at least is more usable.

I can't get C64.emu to run either - crashes on startup too.

ck16 commented 3 years ago

Hi @yoshisuga,

Are you able to provide updated Xcode project for the emulators? I've been using the shell projects from thededman's project for many years, but they don't seem to work any more for me in the latest version of Xcode/macOS Big Sur.

Adding them to the main project would be helpful to many people trying to compile these emulators.

Thanks in advance!

Regards, ck16

github-actions[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity.