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

Add a bunch of helpful comments to fb.h

mintsuki 5457c7aa 95293a3a

Changed files
+5 -3
backends
+5 -3
backends/fb.h
···
#ifndef FLANTERM_FB_DISABLE_CANVAS
uint32_t *canvas,
#endif
-
uint32_t *ansi_colours, uint32_t *ansi_bright_colours,
-
uint32_t *default_bg, uint32_t *default_fg,
-
uint32_t *default_bg_bright, uint32_t *default_fg_bright,
+
uint32_t *ansi_colours, uint32_t *ansi_bright_colours, // If nulled, default.
+
uint32_t *default_bg, uint32_t *default_fg, // If nulled, default.
+
uint32_t *default_bg_bright, uint32_t *default_fg_bright, // If nulled, default.
+
// If font is null, use default font and font_width and font_height ignored.
void *font, size_t font_width, size_t font_height, size_t font_spacing,
+
// If scale_x and scale_y are 0, automatically scale font based on resolution.
size_t font_scale_x, size_t font_scale_y,
size_t margin
);