From 134ab451e3c10fa091cb8ede9593f22f1900017f Mon Sep 17 00:00:00 2001 From: Alexander Batalov Date: Fri, 19 Aug 2022 18:07:12 +0300 Subject: [PATCH] Fix item name separator position --- src/inventory.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/inventory.cc b/src/inventory.cc index 14ef6fa..a7d5d8c 100644 --- a/src/inventory.cc +++ b/src/inventory.cc @@ -3270,12 +3270,13 @@ static void inventoryExamineItem(Object* critter, Object* item) int lineHeight = fontGetLineHeight(); // Draw separator. + // SFALL: Fix separator position when item name is longer than one line. bufferDrawLine(windowBuffer, INVENTORY_WINDOW_WIDTH, INVENTORY_SUMMARY_X, - 3 * lineHeight / 2 + 49, + (_inven_display_msg_line - 1) * lineHeight + lineHeight / 2 + 49, INVENTORY_SUMMARY_MAX_X, - 3 * lineHeight / 2 + 49, + (_inven_display_msg_line - 1) * lineHeight + lineHeight / 2 + 49, _colorTable[992]); // Examine item.