Added MBX_WARNING flag to allow question dialogs with warning icon.

This commit is contained in:
OBattler
2020-11-20 02:57:15 +01:00
parent f6e7a9cbaa
commit e1e5ff563a
2 changed files with 6 additions and 1 deletions

View File

@@ -114,6 +114,9 @@ ui_msgbox_ex(int flags, void *header, void *message, void *btn1, void *btn2, voi
else
tdconfig.dwCommonButtons |= TDCBF_CANCEL_BUTTON;
}
if (flags & MBX_WARNING)
tdconfig.pszMainIcon = TD_WARNING_ICON;
break;
}