diff --git a/tutorials/rendering/img/screenres.png b/tutorials/rendering/img/screenres.png deleted file mode 100644 index f053dafa9..000000000 Binary files a/tutorials/rendering/img/screenres.png and /dev/null differ diff --git a/tutorials/rendering/img/screenres.webp b/tutorials/rendering/img/screenres.webp new file mode 100644 index 000000000..a1f799f57 Binary files /dev/null and b/tutorials/rendering/img/screenres.webp differ diff --git a/tutorials/rendering/img/stretch.png b/tutorials/rendering/img/stretch.png deleted file mode 100644 index 6a0fd74cc..000000000 Binary files a/tutorials/rendering/img/stretch.png and /dev/null differ diff --git a/tutorials/rendering/img/stretch.svg b/tutorials/rendering/img/stretch.svg deleted file mode 100644 index 4822f72c7..000000000 --- a/tutorials/rendering/img/stretch.svg +++ /dev/null @@ -1 +0,0 @@ -Disabled2DViewport diff --git a/tutorials/rendering/img/stretchsettings.png b/tutorials/rendering/img/stretchsettings.png deleted file mode 100644 index 8e90154a5..000000000 Binary files a/tutorials/rendering/img/stretchsettings.png and /dev/null differ diff --git a/tutorials/rendering/img/stretchsettings.webp b/tutorials/rendering/img/stretchsettings.webp new file mode 100644 index 000000000..f43a74d1b Binary files /dev/null and b/tutorials/rendering/img/stretchsettings.webp differ diff --git a/tutorials/rendering/multiple_resolutions.rst b/tutorials/rendering/multiple_resolutions.rst index 4b91380ee..f44db43fa 100644 --- a/tutorials/rendering/multiple_resolutions.rst +++ b/tutorials/rendering/multiple_resolutions.rst @@ -59,7 +59,7 @@ Base size A base size for the window can be specified in the Project Settings under **Display → Window**. -.. image:: img/screenres.png +.. image:: img/screenres.webp However, what it does is not completely obvious; the engine will *not* attempt to switch the monitor to this resolution. Rather, think of this @@ -127,20 +127,16 @@ Stretch settings Stretch settings are located in the project settings and provide several options: -.. image:: img/stretchsettings.png +.. image:: img/stretchsettings.webp Stretch Mode ^^^^^^^^^^^^ The **Stretch Mode** setting defines how the base size is stretched to fit -the resolution of the window or screen. - -.. image:: img/stretch.png - -The animations below use a "base size" of just 16×9 pixels to -demonstrate the effect of different stretch modes. A single sprite, also -16×9 pixels in size, covers the entire viewport, and a diagonal -:ref:`Line2D ` is added on top of it: +the resolution of the window or screen. The animations below use a "base +size" of just 16×9 pixels to demonstrate the effect of different stretch +modes. A single sprite, also 16×9 pixels in size, covers the entire viewport, +and a diagonal :ref:`Line2D ` is added on top of it: .. image:: img/stretch_demo_scene.png @@ -467,7 +463,7 @@ Non-game application - Keep the stretch mode to its default value, ``disabled``. - Keep the stretch aspect to its default value, ``ignore`` (its value won't be used since the stretch mode is ``disabled``). -- You can define a minimum window size by setting ``OS.min_window_size`` in a +- You can define a minimum window size by calling ``get_window().set_min_size()`` in a script's ``_ready()`` function. This prevents the user from resizing the application below a certain size, which could break the UI layout.