Accept SDL_VIDEO_WINDOW_POS in --fullscreen too

This seems to allow me to specify which display (monitor) to make
Tux Paint appear on my two-monitor set-up (laptop + external monitor)!

Closes https://sourceforge.net/p/tuxpaint/bugs/277/
This commit is contained in:
Bill Kendrick 2023-04-28 00:13:32 -07:00
parent 3d1efe8661
commit 378b2acca6
12 changed files with 86 additions and 69 deletions

View file

@ -76,7 +76,7 @@ Language-related environment variables
Display-related environment variables
The following are a few of the environment variables supported by Simple
DirectMedia Layer (libSD) — which Tux Paint utilizes for displaying
DirectMedia Layer (libSDL) — which Tux Paint utilizes for displaying
graphics, playing sounds, and receiving mouse, keyboard, and joystick
input — and which may be useful to users of Tux Paint.
@ -89,6 +89,9 @@ Display-related environment variables
SDL_VIDEO_WINDOW_POS
Requests where to position Tux Paint's window. Normally set to
"center" by Tux Paint itself, unless the environment variable is
already set (e.g., to "nopref", meaning "no preference").
Requests where to position Tux Paint's window, and can be used to
specify what display to place a fullscreen Tux Paint in a
multi-monitor configuration. If not set, or set to "nopref"
(meaning "no preference"), Simple DirectMedia Layer (libSDL)
decides. Can be set to an X,Y coordinate (e.g. 200,100), or
"center" (meaning "center").