RenderBase: clean up UpdateDrawRectangle

This commit is contained in:
Michael Maltese
2017-03-02 17:51:31 -08:00
parent 24d5d89056
commit 3158a5bc35
2 changed files with 55 additions and 76 deletions

View File

@ -93,7 +93,8 @@ public:
virtual TargetRectangle ConvertEFBRectangle(const EFBRectangle& rc) = 0;
const TargetRectangle& GetTargetRectangle() const { return m_target_rectangle; }
float CalculateDrawAspectRatio(int target_width, int target_height) const;
float CalculateDrawAspectRatio() const;
std::tuple<float, float> ScaleToDisplayAspectRatio(int width, int height) const;
TargetRectangle CalculateFrameDumpDrawRectangle() const;
void UpdateDrawRectangle();