[Request] Support SDL landscape mode [released]
I have done my share of games and emulator porting for N900. (Widelands, Bos Wars, Open Dune, Robbo, psx4m, uae4all, ...) It was relatively easy - just need to tweak UI here and there to better fit for "invisible mouse cursor".
Recently I wanted to port these to Jolla Phone and stumbled on a real show stopper - Sailfish OS does not support landscape mode for SDL apps.
I know that your "standard" answer is to rotate in software. But that's just PITA. I loved that on Maemo 5 the developer need not to be concerned with the device orientation. The screen dimension change was just signaled and you needed to relayout the application only. (With a cool rotation animation provided by window manager.) Or just request fixed layout to be pinned for your app. No need to rotate your pixmaps manually, translate pointer coordinates and so on. It was coded once and for all on the lower layer and just worked.
I have already spent too much time on rotating just one game and it still has glitches and weird issues. And thinking that I need to redo/reinvent all these work for each and every one pending... I'm sorry, but that just won't happen...
EDIT: This has been merged upstream and fixed in Mer https://git.merproject.org/mer-core/libsdl/merge_requests/1
Hi smoku, would this also help to port ScummVM?
Stephan ( 2014-12-12 09:43:23 +0200 )editOne way Jolla could fix this is by implementing nested Wayland Compositor. Start a new wayland server that is in landscape mode, draw to it using SDL, rotate and draw to screen. Apps should be able to request landscape only, like described above.
simskog95 ( 2014-12-12 10:14:02 +0200 )edit@Stephan ScummVM is already ported https://build.merproject.org/package/show/home:thp:games/scummvm
smoku ( 2014-12-12 11:19:26 +0200 )editMy SDL2 game was rejected and I think all the rest of my games will be rejected since I use the same code base for doing the rotation and translation of touch events:
"Your application is coded to landscape mode. This makes the swipe closing gesture not working as it should work from the top of the application. Currently it works from the right side since the application is set on portrait mode and not actually on landscape mode as the UI shows it. This might confuse the Jolla user since swipe gestures are orientating with the screen orientation. Please fix this orientation issue."
hamlatzis ( 2015-03-23 16:02:50 +0200 )editHave you posted this issue on sailfish-devel mailing list? I think it could help to discuss it also there.
wanderer ( 2015-03-27 08:01:04 +0200 )edit