python - How can I get PyGame's fullscreen mode to scale consistently on different computers? -


in short: same python script , same monitor, using pygame in fullscreen mode produces 2 different sized images on 2 different computers.

i trying run pygame script on 2 computers, , need images displayed match each other in size on both computers. each computer has same monitor. without using fullscreen, pygame windows (and images of surfaces displayed) same size. when using

pygame.display.set_mode((width,height),pygame.fullscreen) 

the images same size on both computers when ratio of (width,height) matches aspect ratio of native resolution of monitor. if use combination not on list, instance in case (1250, 850), images on screen scaled differently each computer. computers similar, not have same graphics adapter.

in pygame documentation can find

when requesting fullscreen display modes, exact match the
requested resolution cannot made. in these situations pygame select
closest compatible match.

is pygame picking different match each computer?

maybe can use pygame.display.list_modes, tell resolutions of fullscreen possible


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -