From a8ab156a2960748f18e1724198c48774de0b4673 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 25 Dec 2015 16:07:00 -0500 Subject: [PATCH] Fifo: Convert define into constant Also moves it to the cpp file where it's used. --- Source/Core/VideoCommon/Fifo.cpp | 2 ++ Source/Core/VideoCommon/Fifo.h | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/VideoCommon/Fifo.cpp b/Source/Core/VideoCommon/Fifo.cpp index 21888c0514..6ad184cc3e 100644 --- a/Source/Core/VideoCommon/Fifo.cpp +++ b/Source/Core/VideoCommon/Fifo.cpp @@ -30,6 +30,8 @@ #include "VideoCommon/VertexManagerBase.h" #include "VideoCommon/VideoConfig.h" +static constexpr u32 FIFO_SIZE = 2 * 1024 * 1024; + bool g_bSkipCurrentFrame = false; static Common::BlockingLoop s_gpu_mainloop; diff --git a/Source/Core/VideoCommon/Fifo.h b/Source/Core/VideoCommon/Fifo.h index 94199c689a..a66cec7fc2 100644 --- a/Source/Core/VideoCommon/Fifo.h +++ b/Source/Core/VideoCommon/Fifo.h @@ -9,8 +9,6 @@ class PointerWrap; -#define FIFO_SIZE (2*1024*1024) - extern bool g_bSkipCurrentFrame; // This could be in SConfig, but it depends on multiple settings