Opened 18 years ago

Closed 18 years ago

Last modified 5 years ago

#2474 closed defect (fixed)

new theme: changing overlay size

Reported by: wjp Owned by: lordhoto
Priority: normal Component: GUI
Version: Keywords:
Cc: Game:

Description

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.

Change History (5)

comment:1 by wjp, 18 years ago

Owner: set to lordhoto

comment:2 by lordhoto, 18 years ago

Ok I made a fix for that it should work now please try it out and tell me if it's ok.

comment:3 by lordhoto, 18 years ago

Resolution: fixed
Status: newclosed

comment:4 by lordhoto, 18 years ago

ok thanks for reporting then.

comment:5 by digitall, 5 years ago

Component: GUI
Note: See TracTickets for help on using tickets.