Skip to content

Commit 7e0b76b

Browse files
committed
Compiler fixes.
1 parent 05b1489 commit 7e0b76b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/gui.gloa

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2090,8 +2090,7 @@ local drawElement :: (state:State, el:Element) {
20902090
}
20912091

20922092
-- Single-child focus.
2093-
if #cast([]Element)cast(any)scrollable == 1 and (cast([]Element)cast(any)scrollable)[1].id == state.focusId {
2094-
-- if #scrollable == 1 and scrollable[1].id == state.focusId { -- @Compiler @Incomplete: Make '#' work on array-like structs. @Compiler @Bug: scrollable[1] should give us an Element!
2093+
if #scrollable == 1 and scrollable[1].id == state.focusId {
20952094
LG.setColor(COLOR_FOCUS)
20962095
LG.rectangle(LG.DrawMode.LINE, x-SPACING+.5, y+.5, w+SPACING-1, h-1)
20972096
}

0 commit comments

Comments
 (0)