Skip to content

Commit 6a8689e

Browse files
committed
Docs: Window aspect ratio
1 parent e5e009b commit 6a8689e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/source/settings.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ values can refer to the virtual size. The actual buffer size will be larger.
6363
6464
WINDOW = {
6565
"size": (1280, 768),
66+
"aspect_ratio": 16 / 9,
6667
"fullscreen": False,
6768
"resizable": False,
6869
"vsync": True,
@@ -73,6 +74,7 @@ values can refer to the virtual size. The actual buffer size will be larger.
7374
- ``size``: The window size to open. Note that on 4k displays and retina the actual
7475
frame buffer size will normally be twice as large. Internally we query glfw for
7576
the actual buffer size so the viewport can be correctly applied.
77+
- ``aspect_ratio`` is the enforced aspect ratio of the viewport.
7678
- ``fullscreen``: True if you want to create a context in fullscreen mode
7779
- ``resizable``: If the window should be resizable. This only applies in windowed mode.
7880
Currently we constrain the window size to the aspect ratio of the resolution (needs improvement)

0 commit comments

Comments
 (0)