AGI: Give a nicer error message on invalid render mode.

This commit is contained in:
Johannes Schickel 2016-01-21 23:37:05 +01:00
parent ee3e40abc1
commit 29ade784e4

View File

@ -1055,7 +1055,7 @@ int GfxMgr::initVideo() {
// Set the old common alternative Amiga palette
initPalette(altAmigaPalette);
} else
error("initVideo: Unhandled render mode");
error("initVideo: Unhandled render mode \"%s\"", Common::getRenderModeDescription(_vm->_renderMode));
if ((_agiScreen = (uint8 *)calloc(GFX_WIDTH, GFX_HEIGHT)) == NULL)
return errNotEnoughMemory;