Skip to content

codename1 graphics scale incorrectly #5244

@ddyer0

Description

@ddyer0

graphics.scale(xstale,yscale) performs incorrectly in several ways. I have a test program that shows
the problems. First, here's the expected result, produced by standard java.

Image

here's the result produced by the simulator. Note that in the "x-only" case, no scaling at all
seems to occur. In any case with y scaling, there's a mysterious extra few pixels y offset. This
offset seems to be a constant regardless of the scale factor. IOS and android produce simularly
incorrect outputs.

Image

Here's the test program

Dtest.java

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions