From 4f06bf41a5fcb7cffde0bca6cb85ec4f657e1107 Mon Sep 17 00:00:00 2001
From: Rahix <rahix@rahix.de>
Date: Mon, 19 Aug 2019 18:26:19 +0200
Subject: [PATCH] fix(gfx): Don't clear screen on init

Signed-off-by: Rahix <rahix@rahix.de>
---
 lib/gfx/textbuffer.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/lib/gfx/textbuffer.c b/lib/gfx/textbuffer.c
index d2a8a39b..c52e6829 100644
--- a/lib/gfx/textbuffer.c
+++ b/lib/gfx/textbuffer.c
@@ -12,8 +12,6 @@ void txt_init(struct txt_buffer *txtb, struct gfx_region *reg, sFONT *f)
 	txtb->bg_color      = gfx_color_rgb_f(reg, .0f, .0f, .0f);
 	txtb->draw_cursor   = 1;
 	txtb->auto_update   = 1;
-
-	txt_clear(txtb);
 }
 
 static inline size_t width_(struct txt_buffer *tm)
-- 
GitLab