|
1 | | -From dab64a97b336c13c4d48a14550b72508f98cc1d4 Mon Sep 17 00:00:00 2001 |
| 1 | +From 19c6635d5e20dd429cb23b4a7c728afa306fae0a Mon Sep 17 00:00:00 2001 |
2 | 2 | From: Sterophonick <sterophonick@gmail.com> |
3 | | -Date: Wed, 17 Jan 2024 12:00:44 -0700 |
| 3 | +Date: Sat, 10 Feb 2024 22:00:36 -0700 |
4 | 4 | Subject: [PATCH] steamcompmgr: add env var to enable/disable 720p restriction |
5 | 5 |
|
6 | 6 | --- |
7 | | - src/steamcompmgr.cpp | 2 +- |
8 | | - 1 file changed, 1 insertion(+), 1 deletion(-) |
| 7 | + src/steamcompmgr.cpp | 5 ++++- |
| 8 | + 1 file changed, 4 insertions(+), 1 deletion(-) |
9 | 9 |
|
10 | 10 | diff --git a/src/steamcompmgr.cpp b/src/steamcompmgr.cpp |
11 | | -index e50265c..22e9345 100644 |
| 11 | +index 00c00e9..795898c 100644 |
12 | 12 | --- a/src/steamcompmgr.cpp |
13 | 13 | +++ b/src/steamcompmgr.cpp |
14 | | -@@ -5822,7 +5822,7 @@ handle_property_notify(xwayland_ctx_t *ctx, XPropertyEvent *ev) |
| 14 | +@@ -137,6 +137,9 @@ extern float g_flInternalDisplayBrightnessNits; |
| 15 | + extern float g_flHDRItmSdrNits; |
| 16 | + extern float g_flHDRItmTargetNits; |
| 17 | + |
| 18 | ++// define env_to_bool to point to the function in drm: remove in later patches pl0x |
| 19 | ++extern bool env_to_bool(const char *env); |
| 20 | ++ |
| 21 | + uint64_t g_lastWinSeq = 0; |
| 22 | + |
| 23 | + static std::shared_ptr<wlserver_ctm> s_scRGB709To2020Matrix; |
| 24 | +@@ -5657,7 +5660,7 @@ handle_property_notify(xwayland_ctx_t *ctx, XPropertyEvent *ev) |
15 | 25 | int width = xwayland_mode_ctl[ 1 ]; |
16 | 26 | int height = xwayland_mode_ctl[ 2 ]; |
17 | 27 |
|
18 | 28 | - if ( g_nOutputWidth != 1280 && width == 1280 ) |
19 | | -+ if ( ( g_nOutputWidth != 1280 && width == 1280 ) && !getenv("GAMESCOPE_ENABLE_720P_RESTRICT") ) |
| 29 | ++ if ( g_nOutputWidth != 1280 && width == 1280 && !env_to_bool( getenv("GAMESCOPE_ENABLE_720P_RESTRICT") ) ) |
20 | 30 | { |
21 | 31 | width = g_nOutputWidth; |
22 | 32 | height = g_nOutputHeight; |
23 | 33 | -- |
24 | 34 | 2.43.0 |
| 35 | + |
0 commit comments