Skip to content

“pixelDensity() cannot be used here” in static mode sketches (regression from 3.x) #58

Closed
@processing-bot

Description

@processing-bot

Created by: benfry

A sketch with nothing but this code worked in 3.x:

pixelDensity(displayDensity());

But now throws an error saying pixelDensity() cannot be used here, presumably because the preprocessor isn't correctly pulling the method out to place it inside settings() behind the scenes.

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