Bitmap showing upside down in emulator

AntonBrz

Member
Licensed User
Longtime User
I read through the Beginner's guide PDF and I missed the answer to this. I've been using a landscape format for my first program, and only yesterday have been tinkering with a project in portrait style, vertical up and down The problem is, when I was working with the horizontal emulator, the heads were at the top as they should be.
Now, for the first time I had to hit Cntrl F11 to make the emulator screen image tall and slim, and when I run my new program, (which has the portrait set up top in the code (below where it says portrait, landscape, or unspecified) When the progam runs the panels show up with the bitmaps on them upside down! The buttons and the texts are also upside down.
I can't design with the emulator showing the program upside down. I could turn the laptop topsy turvy but that's ridiculous. I tried all the other F1-F12 keys and none of them flipped the screen image on the emulator right side up. What should I do? The answer to this, like the other inane question I asked today, will probably be simple. I hope! Humor is allowed but a friend already suggested standing on my head and typing.

Anton
 
Last edited:

AntonBrz

Member
Licensed User
Longtime User
No, is that the problem? As I mentioned I have it set in the code to Portrait, since I want to format it so people will only play the game in portrait mode, and the game screen won't rotate when they turn their devices sideways, because a landscape orientation would completely distort the shapes in the large png included in the files and applied to the panel. I didn't try the other setting.
If they turn it sideways, images in the background will look like gravity is crushing them, plus the positions of things I need to read the XY for will be different, You can't force a portrait layout by choosing portrait? So many apps and games I've bought stay fixed, with the portrait format.

Thank you. Back to programming. I'll use unspecified for now. That should probably clear up the upside down problem.

___
written in default sized fault, without bolding, because someonel told me to.
 
Upvote 0

AntonBrz

Member
Licensed User
Longtime User
Setting to Portrait

You can also set it to portrait.
Make sure that you set it correctly:
B4X:
#SupportedOrientations: portrait

That's exactly what I did, and am puzzled that the bitmap shows upside down. All the lettering on the buttons too. It's not a problem when the file is run on an Android because it doesn't matter, I can swing the tablet around. But on the emulator it makes it impossible to format things.
Anyhow I was just about to try "unspecified" If that solves the problem, I can proceed writing an app with the Portrait orientation and see it on the emulator.
 
Upvote 0
Top