PDA

View Full Version : BlackBerry Orientation



JonyMnemonic
02-07-2012, 11:19 PM
Hello,

How to set orientation on blackberry platform?

Seth
02-07-2012, 11:36 PM
It's currently hardcoded to landscape mode.. oops. :sweatdrop:

For now, if you need portrait mode, in /shared/bbx/BBXMain.cpp, try changing


bbutil_init_egl(screen_cxt, GL_ES_1, LANDSCAPE);

to


bbutil_init_egl(screen_cxt, GL_ES_1, PORTRAIT);

As far as Proton is concerned, everything is still always be set to "portrait". (Proton doesn't need to do any internal rotations)

JonyMnemonic
02-08-2012, 12:19 AM
Thanks. :)