Skip to content

Renderer misses border foreground elements for <1 device_scale #545

Description

@OndrejKarlik

On Linux, it is possible to set DPI scale less than 100%:

Image

Doing this, and passing the scale to Ultralight, breaks rendering. It seems when using ultralight::View with initial_device_scale < 1, foreground elements are not rendered for border regions of the framebuffer that correspond to the scaling.

This happens in the Sample8. Note the text missing, but background being rendered:

Image

It also happens in my custom application. I was able to confirm that pixels of ultralight::Surface come already with this defect, so this is not related to blitting onto the window surface. The bug appears to be entirely contained within the internal logic, triggered by the initial_device_scale input, not connected to the operating system functions.

My application exhibits interesting behavior, where the "extra" region gets randomly hidden and then revealed when I move an element through it:

DPI.scaling.reveal.webm

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