Opened 17 years ago

Closed 17 years ago

Last modified 15 months ago

#486 closed defect (fixed)

GUI disappear

Reported by: SF/osaukko Owned by: fingolfin
Priority: normal Component: GUI
Keywords: Cc:
Game:

Description

ScummVM 0.2.2 CVS (Win32 version) Built on Oct 10 2002 11:51:02

Changing filter or fullscreen in game menu (GUI) makes it disappear. This also happens in startup menu (game list).

Ticket imported from: #621244. Ticket imported from: bugs/486.

Change History (3)

comment:1 by fingolfin, 17 years ago

To correct this, OSystem_SDL_Normal::hotswap_gfx_mode() must be adjusted to also backup & restore the overlay data if any.

This is complicated by the fact that the old sdl_tmpscreen might be in 555 mode while the new one is in 565 mode - so simply doing a memcpy won't work.

Idea: optimize hotswap_gfx_mode to not just call unload_gfx_mode() and load_gfx_mode(). Rather, be more clever, and keep the old sdl_tmpscreen around for a while, so that we can use SDL to blit from it to the (equally sized) new tmpscreen. SDL should then perform any conversion that are needed.

comment:2 by fingolfin, 17 years ago

Owner: set to fingolfin
Resolution: fixed
Status: newclosed

comment:3 by digitall, 15 months ago

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