Skip to content
This repository has been archived by the owner on Sep 4, 2019. It is now read-only.

Added initial support for portrait orientation #30

Merged
merged 3 commits into from Sep 5, 2012
Merged

Added initial support for portrait orientation #30

merged 3 commits into from Sep 5, 2012

Conversation

jgranick
Copy link
Contributor

@jgranick jgranick commented Sep 4, 2012

SDL for BlackBerry has been designed for landscape only. We really need support for portrait orientation as well.

I had tried to add formal support for portrait orientation in the past, but somehow it never worked properly. Today I found a way to make it happen. This may not be the most elegant solution, but it's a start. At the right places, I have added a check for an environment variable called "FORCE_PORTRAIT", where it switches width and height values in order to render properly.

Both landscape and portrait are now working properly, so long as I specify the "FORCE_PORTRAIT" environment variable in my bar-descriptor.xml when needed.

This is important for a game we are bringing over today, but will also be vital for BlackBerry 10 smartphones, since portrait orientation will likely become much more common, particularly for a 720 x 720 device.

@jgranick
Copy link
Contributor Author

jgranick commented Sep 5, 2012

Okay, I've reverted the unwanted < change, and also added one more commit that fixes the mouse range limits, so the max X and Y values will be proper for the screen

@jnicholl
Copy link
Collaborator

jnicholl commented Sep 5, 2012

Thanks!

jnicholl added a commit that referenced this pull request Sep 5, 2012
Added initial support for portrait orientation
@jnicholl jnicholl merged commit b24d01e into blackberry:emulate Sep 5, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants