diff options
| author | Fabrice <fabrice@schaub-dev.xyz> | 2026-02-12 15:25:37 +0100 |
|---|---|---|
| committer | Fabrice <fabrice@schaub-dev.xyz> | 2026-02-12 15:25:37 +0100 |
| commit | 65ce5859ec10849fa71a42273038db2a820d3fb7 (patch) | |
| tree | 394a23b37518b9b1e4fcfd1f9436c0e18fa4fc41 /src/wayclock.cc | |
| parent | 716cccb220a9e2337320ac591d575a2f68b4ed2c (diff) | |
reworking text rendering
Diffstat (limited to 'src/wayclock.cc')
| -rw-r--r-- | src/wayclock.cc | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/src/wayclock.cc b/src/wayclock.cc index 37b4fa9..ef983ed 100644 --- a/src/wayclock.cc +++ b/src/wayclock.cc @@ -2,7 +2,6 @@ #include "events.h" #include "graphics.h" -#include "text.h" #include "utils.h" #include "window.h" @@ -17,9 +16,6 @@ struct app_s { struct renderer_s* renderer; - struct font_context_s* fctx; - struct font_s* font; - struct atlas_s* atlas; }; void wayc_frame(struct app_s* app, struct window_s* window, @@ -61,19 +57,6 @@ void wayc_handle(u8* user, struct eventloop_s* loop, struct event_s* event) { } int main() { - struct font_context_s fctx; - if (wayc_font_context_init(&fctx) != FONT_CONTEXT_ERROR_NONE) - wayc_panic("Failed to initialize font context"); - - wayc_defer(wayc_font_context_deinit(&fctx)); - - struct font_s font; - if (wayc_font_init(&font, &fctx, WAYC_FONT_SIZE, WAYC_FONT) != - FONT_ERROR_NONE) - wayc_panic("Failed to load font"); - - wayc_defer(wayc_font_deinit(&font)); - struct eventloop_s loop; if (wayc_eventloop_init(&loop, wayc_handle) != EVENTLOOP_ERROR_NONE) wayc_panic("Failed to initialize event loop"); @@ -110,7 +93,7 @@ int main() { wayc_window_redraw(&window, &loop); - struct app_s app = {&renderer, &fctx, &font, nullptr}; + struct app_s app = {&renderer}; while (wayc_eventloop_running(&loop)) { wayc_eventloop_update(&loop, (u8*)&app); |
