mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-09 18:45:40 +00:00
SWOGLWindow: Utilize the move constructor in PrintText
The previous code would always do a copy
This commit is contained in:
parent
99baa3268f
commit
fc41e982e9
@ -86,8 +86,7 @@ void SWOGLWindow::Prepare()
|
|||||||
|
|
||||||
void SWOGLWindow::PrintText(const std::string& text, int x, int y, u32 color)
|
void SWOGLWindow::PrintText(const std::string& text, int x, int y, u32 color)
|
||||||
{
|
{
|
||||||
TextData data{text, x, y, color};
|
m_text.push_back({text, x, y, color});
|
||||||
m_text.emplace_back(data);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void SWOGLWindow::ShowImage(const u8* data, int stride, int width, int height, float aspect)
|
void SWOGLWindow::ShowImage(const u8* data, int stride, int width, int height, float aspect)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user