lordmauve/pgzero

Support high dpi (retina) displays

Open

#34 建立於 2015年8月9日

在 GitHub 查看
 (1 留言) (0 反應) (0 負責人)Python (472 star) (185 fork)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).


貢獻者指南