Android screen resolution

About Monkey 2 Forums Monkey 2 Programming Help Android screen resolution

This topic contains 2 replies, has 2 voices, and was last updated by  juliocmfj 1 year, 8 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #9955

    juliocmfj
    Participant

    I’m doing some tests on Android devices, but I’m having difficulty adjusting the screen resolution.

    In this example, I applied the resolution 320×240, but when running in an emulator with resolution 1920×1080, the resolution of the device becomes the APP.

    I managed to get around this “problem” by applying a Scale(2, 2) and Method Update, where it has:

    I did:

    Is this the correct way to keep the chosen resolution at the time of encoding?

    Attachments:
    #9959

    Mark Sibly
    Keymaster

    You can use the letterbox layout if you want a fixed render size – see the viewlayout banana.

    #9960

    juliocmfj
    Participant

    It worked, Mark.

    I still do not understand the operation of the OnMeasure method… Before, if I am not mistaken, in BlitzMax, just use the function SetVirtualResolution and in Monkey 2 its necessary to override the OnMeasure method to return a Vec2i with the desire resolution.

    Either way it worked perfectly, that matters.

    Thank you.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.