Skip to content

Metal/IOS draw outside the window #5171

Description

@ddyer0

I've been chasing this for a week - the symptom I noticed is that in metal builds, the pinch/zoom
function sometimes manages to draw outside the window being zoomed. This works perfectly
in android and in pre-metal IOS.

I've finally managed to generate a small test program. I'm pretty sure this is a timing
related problem in the interface between codename1 and the underlying OS.

The general operation is to transform by a large amount, then draw an image that
is much larger than the window, and which ought to be clipped to the bounds of
the window. The observed error is that the entire screen is drawn, resulting in a
picture like this.

Image

Here's the test program

Dtest.java

Instructions: run the test, tap the screen once to flip to the actual test program. Note
the top menu bar, and a screen that looks like this.

Image

now rotate the device 90 degrees. You should get an overrun screen like the one shown.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions