SYSTEM: Add side textures as a System feature

This commit is contained in:
Dries Harnie 2015-08-14 15:16:07 +02:00
parent 147ba6ecbb
commit 8fc79af213
4 changed files with 41 additions and 2 deletions

View file

@ -438,3 +438,17 @@ Common::TimerManager *OSystem_SDL::getTimerManager() {
return _timerManager;
#endif
}
// ResidualVM specific code
bool OSystem_SDL::hasFeature(Feature f) {
if (f == kFeatureSideTextures)
return true;
return ModularBackend::hasFeature(f);
}
// ResidualVM specific code
void OSystem_SDL::suggestSideTextures(Graphics::Surface *left,
Graphics::Surface *right) {
SurfaceSdlGraphicsManager *ssgm = dynamic_cast<SurfaceSdlGraphicsManager *>(_graphicsManager);
ssgm->setSideTextures(left, right);
}