OPENGL: Implement getOSDFormat and copyRectToOSD

This commit is contained in:
Thierry Crozat 2016-09-05 21:21:12 +01:00
parent 65d3c15b01
commit a8cb3c8404

View file

@ -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) { void OpenGLGraphicsManager::copyRectToOSD(const void *buf, int pitch, int x, int y, int w, int h) {
#ifdef USE_OSD #ifdef USE_OSD
warning("implement copyRectToOSD"); //TODO _osd->copyRectToTexture(x, y, w, h, buf, pitch);
#endif #endif
} }
@ -779,7 +779,9 @@ void OpenGLGraphicsManager::clearOSD() {
#endif #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) { void OpenGLGraphicsManager::setPalette(const byte *colors, uint start, uint num) {
assert(_gameScreen->hasPalette()); assert(_gameScreen->hasPalette());