make non-critical UI warnings yellow instead so that they stand out [BarnacleEd]

(was posted on Mametesters, I quite like it myself, although obviously it's open for debate)
This commit is contained in:
davidhay 2008-11-24 20:13:01 +00:00
parent edceb1c7f3
commit 57c9bd0a87

View File

@ -290,6 +290,8 @@ int ui_display_startup_screens(running_machine *machine, int first_time, int sho
if (show_warnings && astring_len(warnings_string(machine, messagebox_text)) > 0)
{
ui_set_handler(handler_messagebox_ok, 0);
if (machine->gamedrv->flags & (GAME_WRONG_COLORS | GAME_IMPERFECT_COLORS | GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND | GAME_NO_SOUND))
messagebox_backcolor = UI_YELLOWCOLOR;
if (machine->gamedrv->flags & (GAME_NOT_WORKING | GAME_UNEMULATED_PROTECTION))
messagebox_backcolor = UI_REDCOLOR;
}