mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-12 19:19:03 +00:00
Turn EFB_WIDTH/EFB_HEIGHT into constexpr
https://bugs.dolphin-emu.org/issues/11692#note-5 Also change const into constexpr while we're at it.
This commit is contained in:
parent
e1a5eece60
commit
ced2306fc5
2 changed files with 7 additions and 9 deletions
|
@ -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__)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue