GUI: Replace the options for selecting shaders

This commit is contained in:
Cameron Cawley 2022-07-01 00:11:46 +01:00 committed by Eugene Sandulenko
parent c5705561b0
commit 64c359b5cb
15 changed files with 158 additions and 254 deletions

View file

@ -141,27 +141,6 @@ bool OSystem::setGraphicsMode(const char *name) {
return false;
}
bool OSystem::setShader(const char *name) {
if (!name)
return false;
// Special case for the 'default' filter
if (!scumm_stricmp(name, "default")) {
return setShader(getDefaultShader());
}
const GraphicsMode *sm = getSupportedShaders();
while (sm->name) {
if (!scumm_stricmp(sm->name, name)) {
return setShader(sm->id);
}
sm++;
}
return false;
}
bool OSystem::setStretchMode(const char *name) {
if (!name)
return false;