From a8cb3c8404f1f293607dc22ad0a23ec5e8f02b3d Mon Sep 17 00:00:00 2001 From: Thierry Crozat Date: Mon, 5 Sep 2016 21:21:12 +0100 Subject: OPENGL: Implement getOSDFormat and copyRectToOSD --- backends/graphics/opengl/opengl-graphics.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'backends') diff --git a/backends/graphics/opengl/opengl-graphics.cpp b/backends/graphics/opengl/opengl-graphics.cpp index bea9c927e5..8861d364e6 100644 --- a/backends/graphics/opengl/opengl-graphics.cpp +++ b/backends/graphics/opengl/opengl-graphics.cpp @@ -758,7 +758,7 @@ void OpenGLGraphicsManager::displayMessageOnOSD(const char *msg) { void OpenGLGraphicsManager::copyRectToOSD(const void *buf, int pitch, int x, int y, int w, int h) { #ifdef USE_OSD - warning("implement copyRectToOSD"); //TODO + _osd->copyRectToTexture(x, y, w, h, buf, pitch); #endif } @@ -779,7 +779,9 @@ void OpenGLGraphicsManager::clearOSD() { #endif } -Graphics::PixelFormat OpenGLGraphicsManager::getOSDFormat() { return Graphics::PixelFormat(); } //TODO +Graphics::PixelFormat OpenGLGraphicsManager::getOSDFormat() { + return _defaultFormatAlpha; +} void OpenGLGraphicsManager::setPalette(const byte *colors, uint start, uint num) { assert(_gameScreen->hasPalette()); -- cgit v1.2.3