mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-03-12 22:56:52 +01: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)
|
||||
{
|
||||
TextData data{text, x, y, color};
|
||||
m_text.emplace_back(data);
|
||||
m_text.push_back({text, x, y, color});
|
||||
}
|
||||
|
||||
void SWOGLWindow::ShowImage(const u8* data, int stride, int width, int height, float aspect)
|
||||
|
Loading…
x
Reference in New Issue
Block a user