From 9de4e2171c761adcd51f9c9b1d3f7aa6e47b89ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Stensg=C3=A5rd?= Date: Sun, 6 Jul 2025 23:23:47 +0200 Subject: opplysning: section titles and descriptions --- opplysning.c | 17 ++++++++++++++--- 1 file 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(); -- cgit v1.2.3