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.
This commit is contained in:
Markus Wick
2017-01-28 13:02:54 +01:00
committed by GitHub
2 changed files with 56 additions and 16 deletions

View File

@ -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();