summaryrefslogtreecommitdiff
path: root/src/wayclock.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/wayclock.cc')
-rw-r--r--src/wayclock.cc19
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);