Skip to content

Commit

Permalink
Set default to native resolution of display if Steam tries to force 7…
Browse files Browse the repository at this point in the history
…20p/800p

You can select 720p/800p still in game or via Steam's resolution setting
Steam > Settings > Display > Resolution

This effectively reverts the changes Valve made a year ago forcing us to
720p.
  • Loading branch information
ruineka authored and Samsagax committed Jul 26, 2023
1 parent 498d6cf commit 9f59a41
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/steamcompmgr.cpp
Expand Up @@ -4959,6 +4959,13 @@ handle_property_notify(xwayland_ctx_t *ctx, XPropertyEvent *ev)
size_t server_idx = size_t{ xwayland_mode_ctl[ 0 ] };
int width = xwayland_mode_ctl[ 1 ];
int height = xwayland_mode_ctl[ 2 ];

if ( g_nOutputWidth != 1280 && width == 1280 )
{
width = g_nOutputWidth;
height = g_nOutputHeight;
}

bool allowSuperRes = !!xwayland_mode_ctl[ 3 ];

if ( !allowSuperRes )
Expand Down

0 comments on commit 9f59a41

Please sign in to comment.