lordmauve/pgzero

Support high dpi (retina) displays

Open

#34 opened on 2015年8月9日

GitHub で見る
 (1 comment) (0 reactions) (0 assignees)Python (472 stars) (185 forks)batch import
good first issuemajor

説明

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).


コントリビューターガイド