Browse Source

Merge pull request #1203 from ttencate/patch-2

Add missing Expand stretch aspect documentation
Max Hilbrunner 7 years ago
parent
commit
5af99a67af
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
    reported in the viewport, proportionally). This is usually the best
    option for 2D games that scroll horizontally (like runners or
    option for 2D games that scroll horizontally (like runners or
    platformers).
    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).