diff options
| author | Martin Stensgård <mastensg@mastensg.net> | 2025-07-06 23:23:47 +0200 |
|---|---|---|
| committer | Martin Stensgård <mastensg@mastensg.net> | 2025-07-06 23:23:47 +0200 |
| commit | 9de4e2171c761adcd51f9c9b1d3f7aa6e47b89ec (patch) | |
| tree | 18befaf9badc9b5a84e27fbd17520dc23f66c8fc | |
| parent | 2d53279261253ee1ae7015084c46244ecf13afc5 (diff) | |
opplysning: section titles and descriptions
| -rw-r--r-- | opplysning.c | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/opplysning.c b/opplysning.c index 030a559..cfc0009 100644 --- a/opplysning.c +++ b/opplysning.c @@ -130,7 +130,8 @@ struct ray { struct ray R; const char *the_non_ascii = "ÄÅÉËÞÜÚÍÓÖÁÐFGHÏŒØÆŒ©®BÑΜ" - "äåéëþüúíóöáðfghïœøæœ©®bñµß"; + "äåéëþüúíóöáðfghïœøæœ©®bñµß" + "«»"; void ray_init(void) @@ -246,13 +247,23 @@ main(void) load_events(&ne_booking, ev_booking, "booking.db"); load_events(&ne_meetup, ev_meetup, "meetup.db"); + const char *t_meetup = "Begivenheter"; + const char *u_meetup = "Hentet fra https://www.meetup.com/bitraf/"; + const char *t_booking = "Reservasjoner"; + const char *u_booking = "Hentet fra Google-kalenderen «Bitraf booking»"; + ray_init(); while (!WindowShouldClose()) { BeginDrawing(); ClearBackground(R.bg); - draw_time(SCREEN_W / 2, 0); + draw_time(SCREEN_W / 2 - 100, 0); int x = 20; - int y = 20; + int y = 0; + line(x, y, R.font_h, R.fg, t_meetup); + line(x + SCREEN_W / 2, y, R.font_h, R.fg, t_booking); + y += 50; + line(x, y, R.font_p, R.fg, u_meetup); + line(x + SCREEN_W / 2, y, R.font_p, R.fg, u_booking); draw_events(x, y, ne_meetup, ev_meetup); draw_events(x + SCREEN_W / 2, y, ne_booking, ev_booking); EndDrawing(); |
