Merge pull request #4232 from lioncash/sw

SWOGLWindow: Minor changes
This commit is contained in:
Markus Wick 2016-09-22 10:15:31 +02:00 committed by GitHub
commit d0e7f30ab5
2 changed files with 3 additions and 4 deletions

View File

@ -86,11 +86,10 @@ 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(u8* data, int stride, int width, int height, float aspect) void SWOGLWindow::ShowImage(const u8* data, int stride, int width, int height, float aspect)
{ {
GLInterface->MakeCurrent(); GLInterface->MakeCurrent();
GLInterface->Update(); GLInterface->Update();

View File

@ -20,7 +20,7 @@ public:
void PrintText(const std::string& text, int x, int y, u32 color); void PrintText(const std::string& text, int x, int y, u32 color);
// Image to show, will be swapped immediately // Image to show, will be swapped immediately
void ShowImage(u8* data, int stride, int width, int height, float aspect); void ShowImage(const u8* data, int stride, int width, int height, float aspect);
int PeekMessages(); int PeekMessages();