Browse Source

Add missing Expand stretch aspect documentation

Based on observed behaviour, so I hope I got this right :)
Thomas ten Cate 7 years ago
parent
commit
1488e27460
1 changed files with 5 additions and 0 deletions
  1. 5 0
      tutorials/viewports/multiple_resolutions.rst

+ 5 - 0
tutorials/viewports/multiple_resolutions.rst

@@ -88,3 +88,8 @@ Stretch aspect
    reported in the viewport, proportionally). This is usually the best
    option for 2D games that scroll horizontally (like runners or
    platformers).
+-  **Expand**: Keep aspect ratio when stretching the screen, but keep
+   neither width nor height. Depending on the screen aspect ratio, the
+   viewport will either report more horizontal resolution (if the screen
+   is wider than the original resolution) or more vertical resolution
+   (if the screen is taller than the original resolution).