Skip to content

ofScale breaks coordinates #6

@Raiuc

Description

@Raiuc

Hi. I'm working with the addon to use buttons inside a little application. When I use ofScale(0.5, 0.5) the app draws the buttons correctly inside the scaled layout, however I can't get the isMousePressed event in the new coordinates.

For example if I draw a button in the layout unscaled at (500,500) and then I do ofScale(0.5, 0.5), the new button will be drawn at (250,250) however the button will not catch clicks on that point but on the original unscaled position (500,500).
How can I fix this?
Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions