mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-25 07:09:48 -06:00
SWOGLWindow: const correctness for ShowImage
This commit is contained in:
@ -90,7 +90,7 @@ void SWOGLWindow::PrintText(const std::string& text, int x, int y, u32 color)
|
|||||||
m_text.emplace_back(data);
|
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();
|
||||||
|
@ -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();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user