From 19fb3f3f0f633ec7589b530d4672b8081ffbae20 Mon Sep 17 00:00:00 2001 From: cpasjuste Date: Mon, 21 Mar 2022 12:56:37 +0100 Subject: [PATCH] common: minor ui change --- ui/c2dui_ui_listbox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/c2dui_ui_listbox.cpp b/ui/c2dui_ui_listbox.cpp index cab240de..04eab523 100644 --- a/ui/c2dui_ui_listbox.cpp +++ b/ui/c2dui_ui_listbox.cpp @@ -135,7 +135,7 @@ void UIListBox::init(Font *font, int fontSize, bool useIcons) { // add lines of text for (unsigned int i = 0; i < (unsigned int) max_lines; i++) { - FloatRect r = {1, (line_height * i) + 1, getSize().x - 2, line_height - 2}; + FloatRect r = {1, (line_height * i), getSize().x - 2, line_height - 2}; Texture *icon = nullptr; /* * TODO: fix icons