Skip to content

Commit 47aa202

Browse files
committed
Fixed regression by drawing only the visible items
1 parent 2f85ea2 commit 47aa202

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

LemonUI/Menus/NativeMenu.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1320,9 +1320,9 @@ private void Draw()
13201320

13211321
backgroundImage?.Draw();
13221322

1323-
for (int i = 0; i < Items.Count; i++)
1323+
for (int i = 0; i < visibleItems.Count; i++)
13241324
{
1325-
NativeItem item = Items[i];
1325+
NativeItem item = visibleItems[i];
13261326

13271327
if (item == selected)
13281328
{

0 commit comments

Comments
 (0)