Comment 3 for bug 1137765

Revision history for this message
SirVer (sirver) wrote :

Okay, the fundamental problem here is that changing the graphic settings deletes the g_gr object. This deletes the surface cache and the image cache. Now, all the UI elements in the main menu hold on to a Pointer to the IPictures that where in the image cache - but they no longer exist.

The correct solution (imho) is to also delete and recreate the whole UI so that the images are reloaded. Or maybe it is possible to add a reinitialize method to class Graphic that will purge the SurfaceCache (but not delete it!) - this seems to be easier to do but less clean.