This repository has been archived by the owner on Sep 4, 2019. It is now read-only.
Added initial support for portrait orientation #30
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.