diff options
| author | Connor McLaughlin <stenzek@gmail.com> | 2019-04-28 20:37:25 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-04-28 20:37:25 +1000 |
| commit | d2d8d7ce90f92bb45e2d8b645ec72f104fee5e6b (patch) | |
| tree | 5ea75bfb66302aa45876b4be1e4b1e3712506900 /Source/Core/VideoCommon | |
| parent | e17bb8cfdf9d802ff3fff455f88508700d1a87cc (diff) | |
| parent | ced2306fc5afdde8c3551ac3257c6298d39d2e37 (diff) | |
Merge pull request #8051 from JosJuice/efb-constexpr
Turn EFB_WIDTH/EFB_HEIGHT into constexpr
Diffstat (limited to 'Source/Core/VideoCommon')
| -rw-r--r-- | Source/Core/VideoCommon/VideoCommon.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/Source/Core/VideoCommon/VideoCommon.h b/Source/Core/VideoCommon/VideoCommon.h index e727edd0b0..21aa5236a9 100644 --- a/Source/Core/VideoCommon/VideoCommon.h +++ b/Source/Core/VideoCommon/VideoCommon.h @@ -10,21 +10,18 @@ extern bool g_bRecordFifoData; // These are accurate (disregarding AA modes). -enum -{ - EFB_WIDTH = 640, - EFB_HEIGHT = 528, -}; +constexpr u32 EFB_WIDTH = 640; +constexpr u32 EFB_HEIGHT = 528; // Max XFB width is 720. You can only copy out 640 wide areas of efb to XFB // so you need multiple copies to do the full width. // The VI can do horizontal scaling (TODO: emulate). -const u32 MAX_XFB_WIDTH = 720; +constexpr u32 MAX_XFB_WIDTH = 720; // Although EFB height is 528, 576-line XFB's can be created either with // vertical scaling by the EFB copy operation or copying to multiple XFB's // that are next to each other in memory (TODO: handle that situation). -const u32 MAX_XFB_HEIGHT = 576; +constexpr u32 MAX_XFB_HEIGHT = 576; #ifdef _WIN32 #define PRIM_LOG(...) DEBUG_LOG(VIDEO, __VA_ARGS__) |
