From 8e654528fc5021e3c3ad531dc0a69c9fcdb747b2 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 10 Nov 2017 22:21:37 -0500 Subject: [PATCH] VideoConfig: Add const specifier to IsVSync() member function This member function doesn't alter VideoConfig's state. --- Source/Core/VideoCommon/VideoConfig.cpp | 2 +- Source/Core/VideoCommon/VideoConfig.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/VideoCommon/VideoConfig.cpp b/Source/Core/VideoCommon/VideoConfig.cpp index f561f94d37..5dbc3ef196 100644 --- a/Source/Core/VideoCommon/VideoConfig.cpp +++ b/Source/Core/VideoCommon/VideoConfig.cpp @@ -180,7 +180,7 @@ void VideoConfig::VerifyValidity() } } -bool VideoConfig::IsVSync() +bool VideoConfig::IsVSync() const { return bVSync && !Core::GetIsThrottlerTempDisabled(); } diff --git a/Source/Core/VideoCommon/VideoConfig.h b/Source/Core/VideoCommon/VideoConfig.h index 9fbe78d5c5..c49fe90456 100644 --- a/Source/Core/VideoCommon/VideoConfig.h +++ b/Source/Core/VideoCommon/VideoConfig.h @@ -58,7 +58,7 @@ struct VideoConfig final void Refresh(); void VerifyValidity(); void UpdateProjectionHack(); - bool IsVSync(); + bool IsVSync() const; // General bool bVSync;