Projects > cpp > Issues > Bug #5020

We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.

Create Issue on Github

Windows Phone Orientation

Bug #5020 [Closed]
jake22599 2014-05-05 08:15 . Updated about 5 years ago

I'm using the Cocos2d-x version 3.0 Final Release.
Upon building on the windows phone and have change the MainPage.xaml to Portrait in the settings.

I can see the ram display in portrait, while the game is still being rendered on landscape format, including the fps counter.

WenHai 2014-05-05 09:35
  • Assignee set to WenHai
xseekerj@live.com 2014-05-07 02:00

You can use follow code to set windows phone Orientation to portrait:
Director::getInstance()->getOpenGLView()->UpdateOrientation(Windows::Graphics::Display::DisplayOrientations::Portrait);

xseekerj@live.com 2014-05-07 02:00

You can use follow code to set windows phone Orientation to portrait:
Director::getInstance()->getOpenGLView()->UpdateOrientation(Windows::Graphics::Display::DisplayOrientations::Portrait);

jake22599 2014-05-09 01:54

Thanks for the suggestion.
It will be great if you update the cocos2d-x c++ documentation as well.
http://www.cocos2d-x.org/wiki/Device_Orientation

zhangxm 2014-05-12 09:10

Yep. We need to update the documentation.
@WenHai
Could you please update it?

WenHai 2014-05-21 06:30
  • Status changed from New to Closed
  • Target version set to v3.1
  • % Done changed from 0 to 100

Atom PDF

Status:Closed
Start date:2014-05-05
Priority:Low
Due date:
Assignee:WenHai
% Done:

100%

Category:wp8
Target version:v3.1