jcs
/textview
/amendments
/49
TVNew: Erase initial view port when created
jcs made amendment 49 over 2 years ago
--- textview.c Tue Nov 12 21:28:35 2024
+++ textview.c Tue Nov 12 21:38:54 2024
@@ -103,7 +103,9 @@ TVNew(Rect *view, Rect *padding)
tv->bounds.right = tv->frame.right;
tv->bounds.bottom = tv->padding.top + tv->padding.bottom;
tv->scrolled = tv->bounds;
-
+
+ EraseRect(&tv->view);
+
if (TVAllocateSlab(tv, TV_STYLE_SLAB_SIZE, &tv->first_style_slab,
&tv->last_style_slab) == NULL)
goto fail;