diff options
Diffstat (limited to 'src/comet.c')
| -rw-r--r-- | src/comet.c | 66 |
1 files changed, 33 insertions, 33 deletions
diff --git a/src/comet.c b/src/comet.c index 0a16426..66a90c9 100644 --- a/src/comet.c +++ b/src/comet.c @@ -85,37 +85,37 @@ int main(int argc, char **argv) window_resize(&window, config.width, config.height); window_move(&window, x_padding, y_padding); - block_t blocks[2] = { - { - .color = { 0.2, 0.2, 0.2, 1 }, - .type = BLOCK_TEXT, - .text = { - .text = "A", - .text_color = { 0.8, 0.9, 0.3, 1 }, - }, - }, - { - .color = { 0.2, 0.2, 0.2, 1 }, - .type = BLOCK_TEXT, - .min_width = 100, - .text = { - .text = "B", - .text_color = { 0.8, 0.9, 0.3, 1 }, - }, - }, - }; - - block_t top = { - .hidden = false, - .color = { 0.3, 0.2, 0.5, 1 }, - .min_width = config.width, - .type = BLOCK_GROUP, - .group = { - .spacing = 10, - .n_children = 2, - .children = blocks, - }, - }; + //block_t blocks[2] = { + // { + // .color = { 0.2, 0.2, 0.2, 1 }, + // .type = BLOCK_TEXT, + // .text = { + // .text = "A", + // .text_color = { 0.8, 0.9, 0.3, 1 }, + // }, + // }, + // { + // .color = { 0.2, 0.2, 0.2, 1 }, + // .type = BLOCK_TEXT, + // .min_width = 100, + // .text = { + // .text = "B", + // .text_color = { 0.8, 0.9, 0.3, 1 }, + // }, + // }, + //}; + + //block_t top = { + // .hidden = false, + // .color = { 0.3, 0.2, 0.5, 1 }, + // .min_width = config.width, + // .type = BLOCK_GROUP, + // .group = { + // .spacing = 10, + // .n_children = 2, + // .children = blocks, + // }, + //}; // TODO: Allow ondemand rendering struct timespec rate, start, end, diff; @@ -127,10 +127,10 @@ int main(int argc, char **argv) while (true) { timespec_get(&start, TIME_UTC); - block_update(&top); + block_update(&config.block); layout_t layout; - layout_init(&layout, &top, info); + layout_init(&layout, &config.block, info); event_dispatch(&display, &layout); |
