Fix item name separator position

This commit is contained in:
Alexander Batalov 2022-08-19 18:07:12 +03:00
parent 25fc67fec1
commit 134ab451e3
1 changed files with 3 additions and 2 deletions

View File

@ -3270,12 +3270,13 @@ static void inventoryExamineItem(Object* critter, Object* item)
int lineHeight = fontGetLineHeight(); int lineHeight = fontGetLineHeight();
// Draw separator. // Draw separator.
// SFALL: Fix separator position when item name is longer than one line.
bufferDrawLine(windowBuffer, bufferDrawLine(windowBuffer,
INVENTORY_WINDOW_WIDTH, INVENTORY_WINDOW_WIDTH,
INVENTORY_SUMMARY_X, INVENTORY_SUMMARY_X,
3 * lineHeight / 2 + 49, (_inven_display_msg_line - 1) * lineHeight + lineHeight / 2 + 49,
INVENTORY_SUMMARY_MAX_X, INVENTORY_SUMMARY_MAX_X,
3 * lineHeight / 2 + 49, (_inven_display_msg_line - 1) * lineHeight + lineHeight / 2 + 49,
_colorTable[992]); _colorTable[992]);
// Examine item. // Examine item.