Skip to content

dpi_scaling = "stretch" does not properly position cursor image #1341

@eruvanos

Description

@eruvanos

Describe the bug
Setting dpi_scaling to stretch does not properly handle high dpi setups with custom cursor.

pyglet 2.1.5

Example image, store as cursor.png

Image

Reproduce

import pyglet
pyglet.options.dpi_scaling = "stretch"

cursor_img = pyglet.image.load("cursor.png")

cursor = pyglet.window.ImageMouseCursor(cursor_img, 32, 32)


window = pyglet.window.Window()
window.set_mouse_cursor(cursor)

@window.event
def on_draw():
    window.clear()

pyglet.app.run()

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingmacMac OS X specific

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions