Jump to content
  • Advertisement
Sign in to follow this  
sepsys

[.net] Screen Rotation bug on some phones

This topic is 2995 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi! I'm fighting a bug for several hours now... I'm coding a game that needs to be in landscape mode. On the emulator, the HTC Touch Diamond and the HTC Touch HD2 my code works like a charm, but on the HTC Touch HD it doesn't. In the constructor of the main form I do a
Microsoft.WindowsCE.Forms.SystemSettings.ScreenOrientation =
Microsoft.WindowsCE.Forms.ScreenOrientation.Angle90;
That does it on the two mentioned phones. But the situation on the other phone is that: http://www.bitoholics.net/rotation_problem.png I already tried to: PInvoke ChangeDisplaySettingsEx from coredll.dll and set the screen to portrait, then set it to 90 degrees with the above code (Angle90). I tried only to set 90 degrees over ChangeDisplaySettingsEx... and I tried not to rotate the display at all. But it always shows in one of the cases shown in the picture. It kind of seems like that the phone doesn't really change to landscape (only the form does). Like the phone doesn't rotate the display, but only shows the content rotated... how can I fix that? Thanks! sepsys

Share this post


Link to post
Share on other sites
Advertisement
It looks like the phone is interpreting the angles 90 degrees from what they're supposed to be. Perhaps it considers 0 degrees to be facing right instead of facing up? I wonder if you just need to write special logic for that phone.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!