omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    Is retina display resolution available in scene? Not present on my 4S

    Pythonista
    3
    4
    3705
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • pudquick51
      pudquick51 last edited by

      I've got an iPhone 4S and when I'm running a scene, my bounds are Rect(x=0, y=0, w=320.0, h=480.0)

      I was working on a keyboard for scene: https://gist.github.com/4094718

      I included code to generate on-the-fly both the standard and retina display versions of the keyboard png file, only to find out that, even though the Pythonista UI is retina resolution, scene renders never were.

      ... If retina will never be available, that's ok - makes for simpler GUI applications (and less processor load) - but I'd love to know for sure, so I can just drop the code to check for it / upscale the image.

      1 Reply Last reply Reply Quote 0
      • oefe186
        oefe186 last edited by

        On Retina displays, a pixel is 0.5x0.5 units, so the 480x320 units correspond to 960x640 pixels.

        1 Reply Last reply Reply Quote 0
        • omz
          omz last edited by

          Scenes should always be rendered in retina resolution on devices that have retina screens. The coordinate system for retina and non-retina screens is the same however, so that the same code works unmodified on both kinds of screen. oefe is correct, on a retina screen, 1 point equals 2 pixels.

          1 Reply Last reply Reply Quote 0
          • pudquick51
            pudquick51 last edited by

            Thank you or the clarification :)

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Powered by NodeBB Forums | Contributors