diff options
Diffstat (limited to 'Source/Core/VideoBackends/Software/DebugUtil.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/Software/DebugUtil.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/Source/Core/VideoBackends/Software/DebugUtil.cpp b/Source/Core/VideoBackends/Software/DebugUtil.cpp index c1a7980aa2..1d1dfe0c1a 100644 --- a/Source/Core/VideoBackends/Software/DebugUtil.cpp +++ b/Source/Core/VideoBackends/Software/DebugUtil.cpp @@ -25,18 +25,18 @@ namespace DebugUtil static bool drawingHwTriangles = false; -enum { NumObjectBuffers = 40}; +static const int NUM_OBJECT_BUFFERS = 40; -static u32 *ObjectBuffer[NumObjectBuffers]; -static u32 TempBuffer[NumObjectBuffers]; +static u32 *ObjectBuffer[NUM_OBJECT_BUFFERS]; +static u32 TempBuffer[NUM_OBJECT_BUFFERS]; -static bool DrawnToBuffer[NumObjectBuffers]; -static const char* ObjectBufferName[NumObjectBuffers]; -static int BufferBase[NumObjectBuffers]; +static bool DrawnToBuffer[NUM_OBJECT_BUFFERS]; +static const char* ObjectBufferName[NUM_OBJECT_BUFFERS]; +static int BufferBase[NUM_OBJECT_BUFFERS]; void Init() { - for (int i = 0; i < NumObjectBuffers; i++) + for (int i = 0; i < NUM_OBJECT_BUFFERS; i++) { ObjectBuffer[i] = new u32[EFB_WIDTH*EFB_HEIGHT](); DrawnToBuffer[i] = false; @@ -47,7 +47,7 @@ void Init() void Shutdown() { - for (int i = 0; i < NumObjectBuffers; i++) + for (int i = 0; i < NUM_OBJECT_BUFFERS; i++) { delete[] ObjectBuffer[i]; } @@ -159,7 +159,7 @@ static void DumpEfb(const std::string& filename) static void DumpColorTexture(const std::string& filename, u32 width, u32 height) { - TextureToPng(SWRenderer::getCurrentColorTexture(), width * 4, filename, width, height, true); + TextureToPng(SWRenderer::GetCurrentColorTexture(), width * 4, filename, width, height, true); } void DrawObjectBuffer(s16 x, s16 y, u8 *color, int bufferBase, int subBuffer, const char *name) @@ -229,7 +229,7 @@ void OnObjectEnd() drawingHwTriangles = false; } - for (int i = 0; i < NumObjectBuffers; i++) + for (int i = 0; i < NUM_OBJECT_BUFFERS; i++) { if (DrawnToBuffer[i]) { |
