From 0b9687372282752f586af875f688d634648a5fda Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Thu, 18 Jul 2019 02:28:03 -0400 Subject: text_new(): Read a file stream text_render() must now consume the CSI "[" in the if condition, as text_new() does. --- (limited to 'src/text.h') diff --git a/src/text.h b/src/text.h index 9c581d6..8ee0245 100644 --- a/src/text.h +++ b/src/text.h @@ -22,6 +22,8 @@ #ifndef TEXT_H #define TEXT_H +#include + #include #include "font.h" @@ -29,7 +31,7 @@ struct text; struct text * -text_new(const char *string); +text_new(FILE *stream); size_t text_get_width(struct text *text) __attribute__((pure)); -- cgit v0.9.1