mirror of
https://github.com/libretro/Mesen-S.git
synced 2024-11-23 08:19:40 +00:00
Cleanups
This commit is contained in:
parent
df13a249fa
commit
efacb73b90
@ -72,9 +72,3 @@ std::wstring BaseRenderer::WrapText(string utf8Text, float maxLineWidth, uint32_
|
||||
|
||||
return wrappedText;
|
||||
}
|
||||
|
||||
void BaseRenderer::DrawString(std::string message, int x, int y, uint8_t r, uint8_t g, uint8_t b, uint8_t opacity)
|
||||
{
|
||||
std::wstring textStr = utf8::utf8::decode(message);
|
||||
DrawString(textStr, x, y, r, g, b, opacity);
|
||||
}
|
||||
|
@ -23,7 +23,4 @@ protected:
|
||||
virtual ~BaseRenderer();
|
||||
|
||||
void DisplayMessage(string title, string message);
|
||||
|
||||
void DrawString(std::string message, int x, int y, uint8_t r, uint8_t g, uint8_t b, uint8_t opacity = 255);
|
||||
virtual void DrawString(std::wstring message, int x, int y, uint8_t r = 255, uint8_t g = 255, uint8_t b = 255, uint8_t opacity = 255) = 0;
|
||||
};
|
||||
|
@ -56,19 +56,3 @@ void DebugHud::DrawRectangle(int x, int y, int width, int height, int color, boo
|
||||
_commands.push_back(unique_ptr<DrawRectangleCommand>(new DrawRectangleCommand(x, y, width, height, color, fill, frameCount, startFrame)));
|
||||
}
|
||||
}
|
||||
|
||||
void DebugHud::DrawScreenBuffer(uint32_t* screenBuffer, int startFrame)
|
||||
{
|
||||
auto lock = _commandLock.AcquireSafe();
|
||||
if(_commands.size() < DebugHud::MaxCommandCount) {
|
||||
_commands.push_back(unique_ptr<DrawScreenBufferCommand>(new DrawScreenBufferCommand(screenBuffer, startFrame)));
|
||||
}
|
||||
}
|
||||
|
||||
void DebugHud::DrawString(int x, int y, string text, int color, int backColor, int frameCount, int startFrame)
|
||||
{
|
||||
auto lock = _commandLock.AcquireSafe();
|
||||
if(_commands.size() < DebugHud::MaxCommandCount) {
|
||||
_commands.push_back(unique_ptr<DrawStringCommand>(new DrawStringCommand(x, y, text, color, backColor, frameCount, startFrame)));
|
||||
}
|
||||
}
|
||||
|
@ -22,6 +22,4 @@ public:
|
||||
void DrawPixel(int x, int y, int color, int frameCount, int startFrame);
|
||||
void DrawLine(int x, int y, int x2, int y2, int color, int frameCount, int startFrame);
|
||||
void DrawRectangle(int x, int y, int width, int height, int color, bool fill, int frameCount, int startFrame);
|
||||
void DrawScreenBuffer(uint32_t* screenBuffer, int startFrame);
|
||||
void DrawString(int x, int y, string text, int color, int backColor, int frameCount, int startFrame);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user