From 716cccb220a9e2337320ac591d575a2f68b4ed2c Mon Sep 17 00:00:00 2001 From: Fabrice Date: Thu, 12 Feb 2026 12:44:44 +0100 Subject: ohj --- src/wayclock.cc | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'src/wayclock.cc') diff --git a/src/wayclock.cc b/src/wayclock.cc index 6fa5222..37b4fa9 100644 --- a/src/wayclock.cc +++ b/src/wayclock.cc @@ -2,7 +2,6 @@ #include "events.h" #include "graphics.h" -#include "rendering.h" #include "text.h" #include "utils.h" #include "window.h" @@ -107,18 +106,11 @@ int main() { wayc_defer(wayc_renderer_deinit(&renderer)); - wayc_renderer_use(&renderer); // << make current - - struct atlas_s atlas; - if (!wayc_atlas_init(&atlas, IMAGE_FORMAT_RED, WAYC_ATLAS_WIDTH, - WAYC_ATLAS_HEIGHT)) - wayc_panic("Failed to initialize atlas"); - - wayc_defer(wayc_atlas_deinit(&atlas)); + wayc_renderer_use(&renderer); wayc_window_redraw(&window, &loop); - struct app_s app = {&renderer, &fctx, &font, &atlas}; + struct app_s app = {&renderer, &fctx, &font, nullptr}; while (wayc_eventloop_running(&loop)) { wayc_eventloop_update(&loop, (u8*)&app); -- cgit v1.2.3