diff options
author | San Jacobs | 2024-04-27 18:18:42 +0200 |
---|---|---|
committer | San Jacobs | 2024-04-27 18:18:42 +0200 |
commit | aa3e5561665e6ef0e4082c63bed9664340460d1b (patch) | |
tree | 0f47f20bdcaa985eb4aa1dab2542c09eb2df996a /src | |
parent | f5418b410b37eb9523f3a221d83bc87f99bb4f4f (diff) | |
download | satscalc-aa3e5561665e6ef0e4082c63bed9664340460d1b.tar.gz satscalc-aa3e5561665e6ef0e4082c63bed9664340460d1b.tar.bz2 satscalc-aa3e5561665e6ef0e4082c63bed9664340460d1b.zip |
Prepped for newer odin version
Diffstat (limited to 'src')
-rw-r--r-- | src/main.odin | 2 | ||||
-rw-r--r-- | src/time.odin | 2 | ||||
-rw-r--r-- | src/ui_implementation.odin | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/main.odin b/src/main.odin index fe5f2c8..cc80b3c 100644 --- a/src/main.odin +++ b/src/main.odin @@ -263,7 +263,7 @@ when true { // - - - - WORKDAYS - - - - - for day, i in &workdays { + for &day, i in &workdays { line := panel_line(middle_section, theme.background) line.layout_cut_children = .Left diff --git a/src/time.odin b/src/time.odin index ac1626e..5ab879f 100644 --- a/src/time.odin +++ b/src/time.odin @@ -155,7 +155,7 @@ new_workday :: proc(previous_wrap : Moment, fmt.println(total_timeblocks) - for block, i in &blocks { + for &block, i in &blocks { if i >= total_timeblocks do break //using Weekday diff --git a/src/ui_implementation.odin b/src/ui_implementation.odin index 3a2ddc0..d351761 100644 --- a/src/ui_implementation.odin +++ b/src/ui_implementation.odin @@ -242,7 +242,7 @@ timeline :: proc(parent: ^Item, day: ^Workday) -> ^Item { data.subtype = .Timeline data.day = day - for block in &day.blocks { + for &block in &day.blocks { oui.item_insert(item, timeline_block(&block)) } |