Video Common: Use correct aspect ratio when saving screenshots / video

This commit is contained in:
iwubcode
2017-08-29 00:24:25 -05:00
parent 1090549552
commit 65418a76f5
3 changed files with 47 additions and 14 deletions

View File

@ -181,6 +181,8 @@ protected:
private:
void RunFrameDumps();
void ShutdownFrameDumping();
std::tuple<int, int> CalculateOutputDimensions(int width, int height);
void UpdateFrameDumpTexture(float horizontal_scale);
PEControl::PixelFormat m_prev_efb_format = PEControl::INVALID_FMT;
unsigned int m_efb_scale = 1;
@ -209,6 +211,8 @@ private:
AbstractTexture * m_last_xfb_texture;
u64 m_last_xfb_id = 0;
std::unique_ptr<AbstractTexture> m_dump_texture;
// Note: Only used for auto-ir
u32 m_last_xfb_width = MAX_XFB_WIDTH;
u32 m_last_xfb_height = MAX_XFB_HEIGHT;