From 1ae1940920dd7bbfc4e78021f38dcfb9e0f61f69 Mon Sep 17 00:00:00 2001 From: Olivier Tilloy Date: Mon, 18 May 2026 13:53:21 +0200 Subject: [PATCH] steamcompmgr: remove an unneeded test in paint_window_commit() In d75b122cb0dc36ded36c1d96de0b1327a4fb487a an else block was removed, making the test redundant because its two branches apply the same offset. --- src/steamcompmgr.cpp | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/steamcompmgr.cpp b/src/steamcompmgr.cpp index b64d4597dd..8d9302cd57 100644 --- a/src/steamcompmgr.cpp +++ b/src/steamcompmgr.cpp @@ -2176,16 +2176,8 @@ paint_window_commit( const gamescope::Rc &lastCommit, steamcompmgr_win layer->scale.x = 1.0 / currentScaleRatio_x; layer->scale.y = 1.0 / currentScaleRatio_y; - if ( w != scaleW ) - { - layer->offset.x = -drawXOffset; - layer->offset.y = -drawYOffset; - } - else - { - layer->offset.x = -drawXOffset; - layer->offset.y = -drawYOffset; - } + layer->offset.x = -drawXOffset; + layer->offset.y = -drawYOffset; layer->blackBorder = flags & PaintWindowFlag::DrawBorders;