new theme: changing overlay size
|Reported by:||wjp||Owned by:||lordhoto|
When starting COMI from the standard 640x400 launcher, the overlayheight changes from 400 to 480. A corresponding SCREEN_CHANGED event is sent for this to the scumm engine.
However, the _screen surface in ThemeNew is still at the 640x400 size at this point. The newgui event handler does check for SCREEN_CHANGED events (and recreates the _screen surface if it gets one), but that event handler isn't active for this particular screen change.
This causes a segfault as soon as F5 is pressed, since it tries to copy a 640x480 overlay into a 640x400 surface.
Ticket imported from: #1416862. Ticket imported from: bugs/2474.