File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff 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)
You can’t perform that action at this time.
0 commit comments