mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-12 22:51:11 +00:00
OPENGL: Rename notifyContextChange to notifyContextCreate.
This commit is contained in:
parent
4d3eb4a45a
commit
0063568484
@ -816,7 +816,7 @@ void OpenGLGraphicsManager::setActualScreenSize(uint width, uint height) {
|
||||
++_screenChangeID;
|
||||
}
|
||||
|
||||
void OpenGLGraphicsManager::notifyContextChange(const Graphics::PixelFormat &defaultFormat, const Graphics::PixelFormat &defaultFormatAlpha) {
|
||||
void OpenGLGraphicsManager::notifyContextCreate(const Graphics::PixelFormat &defaultFormat, const Graphics::PixelFormat &defaultFormatAlpha) {
|
||||
// Initialize all extensions.
|
||||
initializeGLExtensions();
|
||||
|
||||
|
@ -127,14 +127,14 @@ protected:
|
||||
|
||||
/**
|
||||
* Notify the manager of a OpenGL context change. This should be the first
|
||||
* thing to call when you create an OpenGL (ES) context!
|
||||
* thing to call after you created an OpenGL (ES) context!
|
||||
*
|
||||
* @param defaultFormat The new default format for the game screen
|
||||
* (this is used for the CLUT8 game screens).
|
||||
* @param defaultFromatAlpha The new default format with an alpha channel
|
||||
* (this is used for the overlay and cursor).
|
||||
*/
|
||||
void notifyContextChange(const Graphics::PixelFormat &defaultFormat, const Graphics::PixelFormat &defaultFormatAlpha);
|
||||
void notifyContextCreate(const Graphics::PixelFormat &defaultFormat, const Graphics::PixelFormat &defaultFormatAlpha);
|
||||
|
||||
/**
|
||||
* Notify the manager that the OpenGL context is about to be destroyed.
|
||||
|
@ -328,7 +328,7 @@ bool OpenGLSdlGraphicsManager::setupMode(uint width, uint height) {
|
||||
|
||||
if (_hwScreen) {
|
||||
const Graphics::PixelFormat rgba8888 = Graphics::PixelFormat(4, 8, 8, 8, 8, 24, 16, 8, 0);
|
||||
notifyContextChange(rgba8888, rgba8888);
|
||||
notifyContextCreate(rgba8888, rgba8888);
|
||||
setActualScreenSize(_hwScreen->w, _hwScreen->h);
|
||||
}
|
||||
|
||||
|
@ -59,7 +59,7 @@ result TizenGraphicsManager::Construct() {
|
||||
|
||||
// We default to RGB565 and RGBA5551 which is closest to the actual output
|
||||
// mode we setup.
|
||||
notifyContextChange(Graphics::PixelFormat(2, 5, 6, 5, 0, 11, 5, 0, 0), Graphics::PixelFormat(2, 5, 5, 5, 1, 11, 6, 1, 0));
|
||||
notifyContextCreate(Graphics::PixelFormat(2, 5, 6, 5, 0, 11, 5, 0, 0), Graphics::PixelFormat(2, 5, 5, 5, 1, 11, 6, 1, 0));
|
||||
|
||||
// Tell our size.
|
||||
int x, y, width, height;
|
||||
|
Loading…
x
Reference in New Issue
Block a user