Hi everyone,<br><br>I was working on some code today, and happened to follow execution into the GUIErrorMessage method in engines\engine.cpp, shown below:<br><br>void GUIErrorMessage(const Common::String msg) {<br>    g_system->setWindowCaption("Error");<br>
    g_system->beginGFXTransaction();<br>        initCommonGFX(false);<br>        g_system->initSize(320, 200);<br>    if (g_system->endGFXTransaction() == OSystem::kTransactionSuccess) {<br>        GUI::MessageDialog dialog(msg);<br>
        dialog.runModal();<br>    } else {<br>        error("%s", msg.c_str());<br>    }<br>}<br><br>I was curious as to why the method explicitly changes the graphics mode to 320x200 - is it necessary for some reason? When calling it from a windowed 640x480 mode it really looks weird to have the size of the window shrink to 320x200 non-scaled as the dialogue is shown. Would a game not running at 320x200 then be expected to restore the resolution back to whatever was needed after the method finishes (presuming there is a reason for the size change)? Or should the method itself be made responsible for restoring the old resolution?<br>
<br>Regards,<br><br>Paul.