DebugUtils: const correctness
This commit is contained in:
parent
5ac161c132
commit
330944eef8
|
@ -154,7 +154,8 @@ static void DumpEfb(const std::string& filename)
|
|||
delete[] data;
|
||||
}
|
||||
|
||||
void DrawObjectBuffer(s16 x, s16 y, u8* color, int bufferBase, int subBuffer, const char* name)
|
||||
void DrawObjectBuffer(s16 x, s16 y, const u8* color, int bufferBase, int subBuffer,
|
||||
const char* name)
|
||||
{
|
||||
int buffer = bufferBase + subBuffer;
|
||||
|
||||
|
@ -170,7 +171,7 @@ void DrawObjectBuffer(s16 x, s16 y, u8* color, int bufferBase, int subBuffer, co
|
|||
BufferBase[buffer] = bufferBase;
|
||||
}
|
||||
|
||||
void DrawTempBuffer(u8* color, int buffer)
|
||||
void DrawTempBuffer(const u8* color, int buffer)
|
||||
{
|
||||
u8* dst = (u8*)&TempBuffer[buffer];
|
||||
*(dst++) = color[2];
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "Common/Common.h"
|
||||
#include "Common/CommonTypes.h"
|
||||
|
||||
namespace DebugUtil
|
||||
{
|
||||
|
@ -18,8 +18,9 @@ void DumpActiveTextures();
|
|||
void OnObjectBegin();
|
||||
void OnObjectEnd();
|
||||
|
||||
void DrawObjectBuffer(s16 x, s16 y, u8* color, int bufferBase, int subBuffer, const char* name);
|
||||
void DrawObjectBuffer(s16 x, s16 y, const u8* color, int bufferBase, int subBuffer,
|
||||
const char* name);
|
||||
|
||||
void DrawTempBuffer(u8* color, int buffer);
|
||||
void DrawTempBuffer(const u8* color, int buffer);
|
||||
void CopyTempBuffer(s16 x, s16 y, int bufferBase, int subBuffer, const char* name);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue