Only show briefing background if we have one, fixing arithmetic crash with SDL Video build
This commit is contained in:
parent
037bbd8786
commit
dec98a025e
|
@ -3,6 +3,7 @@ D2X-Rebirth Changelog
|
||||||
20100324
|
20100324
|
||||||
--------
|
--------
|
||||||
arch/include/event.h, arch/include/mouse.h, arch/sdl/mouse.c, main/kconfig.c, main/movie.c, main/newmenu.c, main/titles.c: Add EVENT_MOUSE_BUTTON_DOWN and EVENT_MOUSE_BUTTON_UP, use for all windows except game and editor. Fixes crash on iMac G5 when pressing keys to progress through briefing
|
arch/include/event.h, arch/include/mouse.h, arch/sdl/mouse.c, main/kconfig.c, main/movie.c, main/newmenu.c, main/titles.c: Add EVENT_MOUSE_BUTTON_DOWN and EVENT_MOUSE_BUTTON_UP, use for all windows except game and editor. Fixes crash on iMac G5 when pressing keys to progress through briefing
|
||||||
|
main/titles.c: Only show briefing background if we have one, fixing arithmetic crash with SDL Video build
|
||||||
|
|
||||||
20100322
|
20100322
|
||||||
--------
|
--------
|
||||||
|
|
|
@ -1372,7 +1372,8 @@ int briefing_handler(window *wind, d_event *event, briefing *br)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case EVENT_WINDOW_DRAW:
|
case EVENT_WINDOW_DRAW:
|
||||||
show_fullscr(&br->background);
|
if (br->background.bm_data)
|
||||||
|
show_fullscr(&br->background);
|
||||||
|
|
||||||
if (br->guy_bitmap_show)
|
if (br->guy_bitmap_show)
|
||||||
show_briefing_bitmap(&br->guy_bitmap);
|
show_briefing_bitmap(&br->guy_bitmap);
|
||||||
|
|
Loading…
Reference in a new issue