diff options
| author | Jack Jamison <jackqjamison@gmail.com> | 2025-10-17 19:11:11 -0400 |
|---|---|---|
| committer | Jack Jamison <jackqjamison@gmail.com> | 2025-10-17 19:11:11 -0400 |
| commit | 1228252e6bc4f18664725d60413896e6d9d9a6c5 (patch) | |
| tree | b742b34d3d2e18c1884163df2c5717e00c046029 /main.c | |
| parent | 2d8507c060a7b7de6f0a714ad98d99b37856d8af (diff) | |
basic option text layout
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -36,6 +36,7 @@ int main(int argc, char* argv[]) { state.running = true; state.input_buffer = array_new(char, 0); + // read input parse_args(&state, argc, argv); read_stdin(&state); @@ -48,7 +49,6 @@ int main(int argc, char* argv[]) { // create font atlas atlas_init(&state); - atlas_calc_item_widths(&state); // start wayland @@ -76,7 +76,12 @@ int main(int argc, char* argv[]) { // create font altas textures atlas_create_texture(&state); - init_text_buffer(&state, &state.input_buffer_text, "", 0); + // create text buffers + init_text_buffer(&state, &state.input_buffer_grafix, "", 0); + array_for_all(item_t, item, state.items) { + init_text_buffer(&state, &item->text_buffer, item->text, strlen(item->text)); + printf("%s\n", item->text); + } // event loop while (state.running) { |
