diff options
| author | Fabrice <fabrice@schaub-dev.xyz> | 2026-02-11 21:55:20 +0100 |
|---|---|---|
| committer | Fabrice <fabrice@schaub-dev.xyz> | 2026-02-11 21:55:20 +0100 |
| commit | 555cfbe1ceeb879ecefcf8666225d3c28a19e6df (patch) | |
| tree | 37a5b39f3663399ffaa9f1d5ff3cc0339b0ed6c4 /src/wayclock.cc | |
| parent | 952dc19e0eeec2b0ba695970ac3f5a2997e39c77 (diff) | |
uploading to atlas
Diffstat (limited to 'src/wayclock.cc')
| -rw-r--r-- | src/wayclock.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/wayclock.cc b/src/wayclock.cc index a34a0b8..d5f1daa 100644 --- a/src/wayclock.cc +++ b/src/wayclock.cc @@ -14,6 +14,7 @@ #define WAYC_FONT "AdwaitaMono-Regular.ttf" #define WAYC_ATLAS_WIDTH 512 #define WAYC_ATLAS_HEIGHT 512 +#define WAYC_FONT_SIZE 48 struct app_s { struct renderer_s* renderer; @@ -68,7 +69,8 @@ int main() { wayc_defer(wayc_font_context_deinit(&fctx)); struct font_s font; - if (wayc_font_init(&font, &fctx, WAYC_FONT) != FONT_ERROR_NONE) + 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)); |
