From 5b23247667f008c076b5e11861a6cb35507bcf00 Mon Sep 17 00:00:00 2001 From: Vasily Date: Sun, 1 Dec 2019 14:49:36 +0100 Subject: [PATCH] Make DesktopOverlay use public getter instead of explicit settings call Using the getter is clearer and leads to less code duplication. --- src/openvr/overlay_utils.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/openvr/overlay_utils.cpp b/src/openvr/overlay_utils.cpp index 54c58c1..3e713cc 100644 --- a/src/openvr/overlay_utils.cpp +++ b/src/openvr/overlay_utils.cpp @@ -31,8 +31,7 @@ void setDesktopOverlayWidth( double width ) void DesktopOverlay::update() { - setDesktopOverlayWidth( - settings::getSetting( settings::DoubleSetting::UTILITY_desktopWidth ) ); + setDesktopOverlayWidth( getCurrentWidth() ); } bool DesktopOverlay::isAvailable() const