gamescope/src
Simon Ser 1d528be605 Untangle preferred mode and current mode
g_nOutput* stored two different values: preferred values taken from
the CLI at init-time, then current values after init. This results
in some tricky logic because depending on when code is executed it'd
access one or the other.

Introduce two separate sets of variables instead. DRM reads from the
preferred values, decides which DRM mode to enable, then writes to
the current values. SDL reads from the preferred values and makes
them current immediately.

This changes gamescope's behaviour so that native DRM modes are
picked when -w/-h isn't specified on the command line. When -w/-h are
specified, the DRM logic will try to pick a mode which matches.

When nested, the default output size still defaults to 720p, but
changes when the user resizes the window.

Closes: https://github.com/Plagman/gamescope/issues/258
2021-09-14 16:45:23 +02:00
..
composite.comp rendervulkan: Use push constants for composite data 2021-09-12 18:21:44 -07:00
cvt.cpp drm: don't use private wlroots prototype for bundled cvt 2021-08-07 15:38:17 +02:00
cvt.hpp drm: allow to switch refresh rate at runtime 2021-07-20 17:53:38 +02:00
drm.cpp Untangle preferred mode and current mode 2021-09-14 16:45:23 +02:00
drm.hpp Untangle preferred mode and current mode 2021-09-14 16:45:23 +02:00
gpuvis_trace_utils.h steamcompmgr.cpp: rise 2020-01-22 21:50:01 -08:00
loadargbcursor.c Import Debian version 1.34 2020-01-01 15:26:44 +09:00
log.cpp Simplify errorf_errno a bit 2021-08-25 18:16:44 +02:00
log.hpp wlserver: set wlroots log handler 2021-09-01 18:31:45 +02:00
main.cpp Untangle preferred mode and current mode 2021-09-14 16:45:23 +02:00
main.hpp Add long options 2021-09-01 14:51:23 +02:00
pipewire.cpp pipewire: add doc comments for {in,out}_buffer 2021-08-31 17:12:17 +02:00
pipewire.hpp pipewire: add doc comment for pipewire_buffer 2021-08-31 17:12:17 +02:00
rendervulkan.cpp rendervulkan: Set addressModeW for samplers 2021-09-12 18:21:44 -07:00
rendervulkan.hpp rendervulkan: Replace border color with CLAMP_TO_EDGE + bounds check 2021-09-12 18:21:44 -07:00
sdlscancodetable.hpp sdlwindow: put all the SDL I/O code in the same spot. 2020-09-01 23:00:06 -07:00
sdlwindow.cpp Drop trailing spaces 2021-09-13 23:14:57 +02:00
sdlwindow.hpp sdlwindow: mimic window shown. 2020-09-13 00:19:02 -07:00
steamcompmgr.cpp Drop trailing spaces 2021-09-13 23:14:57 +02:00
steamcompmgr.hpp steamcompmgr: some cursor hiding improvements 2021-09-12 23:21:35 -07:00
udev_is_boot_vga.c SteamOS: add udev_is_boot_vga tool to detect hybrid configs 2019-09-09 11:02:32 -07:00
vblankmanager.cpp Stop using X11 events for vblankmanager 2021-06-09 18:42:38 +02:00
vblankmanager.hpp Stop using X11 events for vblankmanager 2021-06-09 18:42:38 +02:00
wlserver.cpp wlserver: stop setting keyboard in wlserver_new_input 2021-09-14 13:56:33 +02:00
wlserver.hpp wlserver: set keyboard in wlserver_key 2021-09-14 13:47:55 +02:00