ALL: Drop setupScreen API, use new initGraphics3d from engine API.
Enabled system API for begin/end gfx transactions, initSize, setGraphicsMode. Function setGraphicsMode will use optional params to trigger 3d rendering and switch to proper SDL Gfx manager.
This commit is contained in:
parent
a38148e428
commit
d8f2040dba
30 changed files with 347 additions and 222 deletions
|
@ -395,6 +395,16 @@ void initGraphics(int width, int height) {
|
|||
initGraphics(width, height, &format);
|
||||
}
|
||||
|
||||
// ResidualVM start:
|
||||
void initGraphics3d(int width, int height, bool fullscreen, bool accel3d) {
|
||||
g_system->beginGFXTransaction();
|
||||
g_system->setGraphicsMode(0, OSystem::kGfxModeRender3d | (accel3d ? OSystem::kGfxModeAcceleration3d : 0));
|
||||
g_system->initSize(width, height);
|
||||
g_system->setFeatureState(OSystem::kFeatureFullscreenMode, fullscreen);
|
||||
g_system->endGFXTransaction();
|
||||
}
|
||||
// ResidualVM end
|
||||
|
||||
void GUIErrorMessageWithURL(const Common::U32String &msg, const char *url) {
|
||||
GUIErrorMessage(msg, url);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue