RenderBase: Extract the framebuffer size to display size code into function.

This commit is contained in:
Admiral H. Curtiss
2017-01-23 19:33:26 +01:00
parent 90ee85f4e8
commit e1fa6c374f
2 changed files with 18 additions and 15 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();