diff options
| author | NeoBrainX <NeoBrainX@gmail.com> | 2012-09-28 23:48:18 +0200 |
|---|---|---|
| committer | NeoBrainX <NeoBrainX@gmail.com> | 2012-10-03 13:44:35 +0200 |
| commit | 035840e7b57d8056c1b8546aa5d2ae3a8b65d6e4 (patch) | |
| tree | f56b8700d5f5c7f73d96f4ce1b2721e0bd2f1a3a /Source/Core/VideoCommon/Src/FramebufferManagerBase.h | |
| parent | 8f5223d0e66bf3fa3c1fe314b8e40c19555d3b09 (diff) | |
Move last XFB size from Render to FramebufferManager.
Diffstat (limited to 'Source/Core/VideoCommon/Src/FramebufferManagerBase.h')
| -rw-r--r-- | Source/Core/VideoCommon/Src/FramebufferManagerBase.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/Src/FramebufferManagerBase.h b/Source/Core/VideoCommon/Src/FramebufferManagerBase.h index 26d360647d..a28a941e5b 100644 --- a/Source/Core/VideoCommon/Src/FramebufferManagerBase.h +++ b/Source/Core/VideoCommon/Src/FramebufferManagerBase.h @@ -50,6 +50,11 @@ public: static void CopyToXFB(u32 xfbAddr, u32 fbWidth, u32 fbHeight, const EFBRectangle& sourceRc,float Gamma); static const XFBSourceBase* const* GetXFBSource(u32 xfbAddr, u32 fbWidth, u32 fbHeight, u32 &xfbCount); + static void SetLastXfbWidth(unsigned int width) { s_last_xfb_width = width; } + static void SetLastXfbHeight(unsigned int height) { s_last_xfb_height = height; } + static unsigned int LastXfbWidth() { return s_last_xfb_width; } + static unsigned int LastXfbHeight() { return s_last_xfb_height; } + protected: struct VirtualXFB { @@ -85,6 +90,9 @@ private: static VirtualXFBListType m_virtualXFBList; // Only used in Virtual XFB mode static const XFBSourceBase* m_overlappingXFBArray[MAX_VIRTUAL_XFB]; + + static unsigned int s_last_xfb_width; + static unsigned int s_last_xfb_height; }; extern FramebufferManagerBase *g_framebuffer_manager; |
