From a2f85ab8949011f7c288ab073d4b974791ecde99 Mon Sep 17 00:00:00 2001 From: ephphatha Date: Sun, 20 Mar 2022 14:30:50 +1100 Subject: [PATCH] Use a viewport size of 1 when displaying a list of actions for the ok dialog Having a size 0 viewport made the action invisible, forcing the player to use the Esc action. --- Source/DiabloUI/selok.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/DiabloUI/selok.cpp b/Source/DiabloUI/selok.cpp index 87bc6aaa6..63a37e4b6 100644 --- a/Source/DiabloUI/selok.cpp +++ b/Source/DiabloUI/selok.cpp @@ -66,7 +66,7 @@ void UiSelOkDialog(const char *title, const char *body, bool background) } vecSelOkDialogItems.push_back(std::make_unique(_("OK"), 0)); - vecSelOkDialog.push_back(std::make_unique(vecSelOkDialogItems, 0, PANEL_LEFT + 230, (UI_OFFSET_Y + 390), 180, 35, UiFlags::AlignCenter | UiFlags::FontSize30 | UiFlags::ColorUiGold)); + vecSelOkDialog.push_back(std::make_unique(vecSelOkDialogItems, 1, PANEL_LEFT + 230, (UI_OFFSET_Y + 390), 180, 35, UiFlags::AlignCenter | UiFlags::FontSize30 | UiFlags::ColorUiGold)); strcpy(dialogText, WordWrapString(body, MESSAGE_WIDTH, GameFont24).c_str());