-1
\$\begingroup\$

I have a big problem with game resolution, when I'm running my game on emulator (which theoretically has the same resolution as my real windows phone device: 800 x 480). I'm making the game with Monogame.

Here is how it looks, the bottom of a page when I run the game on emulator: enter image description here

And, here is how it looks the bottom of a page, when I run the game on the real device: enter image description here

How can I fix this problem? I noticed, that if I hold the back button till I see all the apps that I have opened, and get back to the game, the resolution will be back to normal, as it is on the emulator.

PS> I'm targeting the Windows Phone 8 devices, and testing on a Lumia 520, with Windows 10 Mobile, Preview for developers.

Thanks.

\$\endgroup\$
  • \$\begingroup\$ So the screen is distorted or what ? What do you see on top top of the screen ? black bar ? \$\endgroup\$ – dimitris93 Sep 7 '15 at 15:24
  • \$\begingroup\$ No, the top of the screen is the same on emunator as it is on the device. \$\endgroup\$ – Edvin Sep 7 '15 at 15:30
  • \$\begingroup\$ Can you specify what is different about the two images? Is it that on the real device its cut off? \$\endgroup\$ – Ashigaru Sep 7 '15 at 15:33
  • \$\begingroup\$ Then the whole game has to be be distorted in order for that to happen. Could it be because you are not hiding fast enough some sort of task bar in the top ? Try printing out the screen resolution when your Game1() initializes see if it is 800 height or something less. \$\endgroup\$ – dimitris93 Sep 7 '15 at 15:33
  • \$\begingroup\$ I put the following code in the Initialize method, in Game.cs: Deployment.Current.Dispatcher.BeginInvoke(() => { System.Windows.MessageBox.Show("Width: " + Application.Current.Host.Content.ActualWidth.ToString() + "\n" + Application.Current.Host.Content.ActualHeight.ToString()); }); And it printed out this: imgur.com/0oyBZmk 800 x 480 .... \$\endgroup\$ – Edvin Sep 7 '15 at 17:38
0
\$\begingroup\$

I think the problem was caused because I was testing on the Windows 10 Mobile Preview. Today I downgraded to Windows Phone 8.1, and I do not have anymore that problem.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.