diff options
Diffstat (limited to 'src/gui/text_widget.h')
-rw-r--r-- | src/gui/text_widget.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/text_widget.h b/src/gui/text_widget.h index 4b00b4f..7e87a3c 100644 --- a/src/gui/text_widget.h +++ b/src/gui/text_widget.h @@ -3,6 +3,8 @@ #include "widget.h" +#define TEXT_WIDGET_MAX_TEXT_SIZE 100 + typedef struct { widget_vtable_t base; void (*set_text)( void *obj, const char *s ); @@ -11,7 +13,7 @@ typedef struct { typedef struct { widget_t base; text_widget_vtable_t *vtable; - const char *s; + char s[TEXT_WIDGET_MAX_TEXT_SIZE]; } text_widget_t; void text_widget_init( text_widget_t *widget, widget_t *parent, const int x, const int y, const int w, const int h, const vga_color_t background_color, const char *s ); |