diff options
| author | Tony Wasserka <neobrainx@gmail.com> | 2014-08-12 11:59:21 +0200 |
|---|---|---|
| committer | Tony Wasserka <neobrainx@gmail.com> | 2014-08-12 11:59:21 +0200 |
| commit | d03e91962e9c7cb5a51693086df2ecaa50ec8c12 (patch) | |
| tree | 77ebbdf72b21419a3238d6ebb33d6096b3efb946 /Source/Core/VideoBackends/Software/DebugUtil.cpp | |
| parent | a46151e14690bdba78c5d8844e2c369b2c7a64e2 (diff) | |
| parent | bcd10bfda657d6af2d43c22de20b1d924e482b98 (diff) | |
Merge pull request #779 from lioncash/software-cleanup
Small software backend cleanup.
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]) { |
