Fast and reasonably complete (framebuffer) terminal emulator (Zig fork)

Fix warnings introduced in f946bd77abccd6741419cce29aafaa04a43cef60

mintsuki 68ace922 f946bd77

Changed files
+3 -2
backends
+3 -2
backends/fb.c
···
}
}
+
#ifdef FLANTERM_FB_ENABLE_MASKING
static void plot_char_masked(struct flanterm_context *_ctx, struct flanterm_fb_char *old, struct flanterm_fb_char *c, size_t x, size_t y) {
struct flanterm_fb_context *ctx = (void *)_ctx;
···
}
}
}
+
#endif
static inline bool compare_char(struct flanterm_fb_char *a, struct flanterm_fb_char *b) {
return !(a->c != b->c || a->bg != b->bg || a->fg != b->fg);
···
if (ctx->map[offset] == NULL) {
continue;
}
-
struct flanterm_fb_char *old = &ctx->grid[offset];
#ifdef FLANTERM_FB_ENABLE_MASKING
+
struct flanterm_fb_char *old = &ctx->grid[offset];
if (q->c.bg == old->bg && q->c.fg == old->fg) {
plot_char_masked(_ctx, old, &q->c, q->x, q->y);
} else {
···
#else
plot_char(_ctx, &q->c, q->x, q->y);
#endif
-
ctx->grid[offset] = q->c;
ctx->map[offset] = NULL;
}