Compare commits
1 Commits
ae3d2b20d0
...
b77f273e4e
| Author | SHA1 | Date | |
|---|---|---|---|
| b77f273e4e |
@ -3,6 +3,7 @@
|
||||
#include <time.h>
|
||||
#include <stdio.h>
|
||||
#include <stdint.h>
|
||||
#include <inttypes.h>
|
||||
|
||||
#include "inter.h"
|
||||
#include "inter-bold.h"
|
||||
@ -510,7 +511,13 @@ void per_frame(){
|
||||
category.editing = false;
|
||||
}
|
||||
} else {
|
||||
ImGui::Text("%s", category.name);
|
||||
uint64_t num_days_this_year = 0;
|
||||
for (size_t j = 0; j < num_categorized_days; j++) {
|
||||
if (categorized_days[j].category == i && categorized_days[j].year == year) {
|
||||
num_days_this_year++;
|
||||
}
|
||||
}
|
||||
ImGui::Text("%s (%" PRIu64 ")", category.name, num_days_this_year);
|
||||
}
|
||||
|
||||
ImGui::TableSetColumnIndex(2);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user