summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/RenderBase.h
diff options
context:
space:
mode:
authorMarkus Wick <degasus@users.noreply.github.com>2017-01-28 13:02:54 +0100
committerGitHub <noreply@github.com>2017-01-28 13:02:54 +0100
commit3405f0ba01e3137a241f5f6edecae8e644d63bb5 (patch)
tree6f02f5c9dbd273fedc96ff3a6e21f665a3f61df9 /Source/Core/VideoCommon/RenderBase.h
parent688262fea0c9d978a35d6c505887c4abf656709e (diff)
parentb2c40bf4c4deb9798549c12236ffe57e38bc6bfd (diff)
Merge pull request #4739 from AdmiralCurtiss/auto-adjust-window-size-16-9
Make the "Auto Adjust Window Size" option respect the current game's aspect ratio.
Diffstat (limited to 'Source/Core/VideoCommon/RenderBase.h')
-rw-r--r--Source/Core/VideoCommon/RenderBase.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/RenderBase.h b/Source/Core/VideoCommon/RenderBase.h
index 94d433b83b..46c01afb78 100644
--- a/Source/Core/VideoCommon/RenderBase.h
+++ b/Source/Core/VideoCommon/RenderBase.h
@@ -19,6 +19,7 @@
#include <mutex>
#include <string>
#include <thread>
+#include <tuple>
#include <vector>
#include "Common/CommonTypes.h"
@@ -94,6 +95,7 @@ public:
static const TargetRectangle& GetTargetRectangle() { return target_rc; }
static float CalculateDrawAspectRatio(int target_width, int target_height);
+ static std::tuple<float, float> ScaleToDisplayAspectRatio(int width, int height);
static TargetRectangle CalculateFrameDumpDrawRectangle();
static void UpdateDrawRectangle();