Avoid window larger than sole display size is capable of

If only one display is available, when running in windowed mode
and asking for Tux Paint to appear in a width and/or height larger
than the display's dimensions, Tux Paint will fall back to
the maximum(s) the display is capable of.

e.g., on my laptop with 1920x1080, running "tuxpaint --2048x2048"
will fall back to 1920x1080 (and display a warning to stdout).
However, if I have my external monitor (also 1920x1080) attached,
it will happily open a 2048x2048 window.  Not perfect, but an
improvement.

Closes https://sourceforge.net/p/tuxpaint/feature-requests/113/
This commit is contained in:
Bill Kendrick 2023-01-19 00:49:13 -08:00
parent 949438e2fb
commit 51c270b519
12 changed files with 98 additions and 6 deletions

View file

@ -55,6 +55,13 @@ https://tuxpaint.org/
native size. (SDL2.0)
TOYAMA Shin-ichi <dolphin6k@wmail.plala.or.jp>
* If only one display is available, when running in windowed mode
and asking for Tux Paint to appear in a width and/or height larger
than the display's dimensions, Tux Paint will fall back to
the maximum(s) the display is capable of.
(Closes https://sourceforge.net/p/tuxpaint/feature-requests/113/)
Bill Kendrick <bill@newbreedsoftware.com>
* Changed default UI font from Bitstream Vera to DejaVu Sans.
h/t Mark Kim <markuskimius@gmail.com>

View file

@ -126,6 +126,11 @@ Video/Sound
* 768x1024
* 1600x1200
💡 If only one display is available, and Tux Paint is being run in
windowed (not fullscreen) mode, and the chosen window size exceeds
the capabilities of the display, Tux Paint will fall back to the
display's dimensions.
orient=portrait
Swaps the width/height options given to Tux Paint, useful for

View file

@ -298,6 +298,9 @@
<li>1600x1200
</li>
</ul>
<p class="note">
<span title="Information">&#128161;</span> If only one display is available, and Tux Paint is being run in windowed (not fullscreen) mode, and the chosen window size exceeds the capabilities of the display, Tux Paint will fall back to the display's dimensions. </p>
</dd>
<dt>

View file

@ -126,6 +126,11 @@ Video/Sound
* 768x1024
* 1600x1200
💡 If only one display is available, and Tux Paint is being run in
windowed (not fullscreen) mode, and the chosen window size exceeds
the capabilities of the display, Tux Paint will fall back to the
display's dimensions.
orient=portrait
Swaps the width/height options given to Tux Paint, useful for

View file

@ -298,6 +298,9 @@
<li>1600x1200
</li>
</ul>
<p class="note">
<span title="Information">&#128161;</span> If only one display is available, and Tux Paint is being run in windowed (not fullscreen) mode, and the chosen window size exceeds the capabilities of the display, Tux Paint will fall back to the display's dimensions. </p>
</dd>
<dt>

View file

@ -133,6 +133,11 @@ Vidéo/Son
* 768x1024
* 1600x1200
💡 If only one display is available, and Tux Paint is being run in
windowed (not fullscreen) mode, and the chosen window size exceeds
the capabilities of the display, Tux Paint will fall back to the
display's dimensions.
orient=portrait
Permute les options de largeur / hauteur données à Tux Paint,

View file

@ -298,6 +298,9 @@
<li>1600x1200
</li>
</ul>
<p class="note">
<span title="Information">&#128161;</span> If only one display is available, and Tux Paint is being run in windowed (not fullscreen) mode, and the chosen window size exceeds the capabilities of the display, Tux Paint will fall back to the display's dimensions. </p>
</dd>
<dt>

View file

@ -135,6 +135,11 @@ Video/Sound
* 768x1024
* 1600x1200
💡 If only one display is available, and Tux Paint is being run in
windowed (not fullscreen) mode, and the chosen window size exceeds
the capabilities of the display, Tux Paint will fall back to the
display's dimensions.
orient=portrait
Cambia as opcións de largo/alto dadas a Tux Paint, útiles para

View file

@ -298,6 +298,9 @@
<li>1600x1200
</li>
</ul>
<p class="note">
<span title="Information">&#128161;</span> If only one display is available, and Tux Paint is being run in windowed (not fullscreen) mode, and the chosen window size exceeds the capabilities of the display, Tux Paint will fall back to the display's dimensions. </p>
</dd>
<dt>

View file

@ -111,6 +111,11 @@ Windows のユーザー
* 768x1024
* 1600x1200
💡 If only one display is available, and Tux Paint is being run in
windowed (not fullscreen) mode, and the chosen window size exceeds
the capabilities of the display, Tux Paint will fall back to the
display's dimensions.
orient=portrait
ウィンドウの幅と高さの設定を入れ替えます。これは、タブレットパソコンのような縦型のディスプレイでウィンドウを回転させる際に便利なオプションです。

View file

@ -298,6 +298,9 @@
<li>1600x1200
</li>
</ul>
<p class="note">
<span title="Information">&#128161;</span> If only one display is available, and Tux Paint is being run in windowed (not fullscreen) mode, and the chosen window size exceeds the capabilities of the display, Tux Paint will fall back to the display's dimensions. </p>
</dd>
<dt>