diff options
| author | Fabrice <fabrice@schaub-dev.xyz> | 2026-02-11 22:03:38 +0100 |
|---|---|---|
| committer | Fabrice <fabrice@schaub-dev.xyz> | 2026-02-11 22:03:38 +0100 |
| commit | f1e9a3fa502843f0f3092e4bbb016c14eec43fcc (patch) | |
| tree | b96e84f9717d185a4e03b829c5bb173d6d432eb7 /src/text.cc | |
| parent | 616d099498ec573ec32ec1eb91ddc076c7622d31 (diff) | |
add ability to choose custom alignment
Diffstat (limited to 'src/text.cc')
| -rw-r--r-- | src/text.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/text.cc b/src/text.cc index 0a48d6c..ff9b833 100644 --- a/src/text.cc +++ b/src/text.cc @@ -100,7 +100,7 @@ enum font_error_e wayc_font_lookup(struct font_s* font, struct atlas_s* atlas, ivec2 size = {(i32)bitmap.width, (i32)bitmap.rows}; wayc_atlas_set(atlas, IMAGE_DATA_TYPE_UNSIGNED_BYTE, font->cursor, size[0], - size[1], bitmap.buffer); + size[1], IMAGE_FORMAT_RED_ALIGNMENT, bitmap.buffer); struct glyph_s glyph = {}; glm_ivec2(font->cursor, glyph.uv0); |
