lordmauve/pgzero

Support high dpi (retina) displays

Open

#34 ouverte le 9 août 2015

Voir sur GitHub
 (1 commentaire) (0 réactions) (0 assignés)Python (185 forks)batch import
good first issuemajor

Métriques du dépôt

Stars
 (472 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

Originally reported by: Daniel Pope (Bitbucket: lordmauve, GitHub: lordmauve)


On high resolution displays, Pygame games designed for low dpi displays come out incredibly tiny. We should detect such displays and apply suitable scaling.

Pygame_sdl2 has some support for high dpi displays though it looks like this just returns a larger surface corresponding to the physical display. We would need to honour the WIDTH and HEIGHT attributes in the game and upscale before painting the screen.

This may be slow, so we could look at doing the upscaling in hardware (eg. with Pixel Buffer Objects or Buffer Object Streaming).


Guide contributeur