From 161a854502210be1ae1d746fbcfdfe9fbb67f0a7 Mon Sep 17 00:00:00 2001 From: Amy Gale Ruth Bowersox Date: Sun, 8 Dec 2019 00:07:28 -0700 Subject: [PATCH] checking out text rendering --- scripts/tmp_main.py | 3 +++ src/fbprimitive.c | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/tmp_main.py b/scripts/tmp_main.py index f57eaef..e694840 100644 --- a/scripts/tmp_main.py +++ b/scripts/tmp_main.py @@ -19,4 +19,7 @@ upiwin_tmp.filled_rectangle(110, 60, 150, 100, FBPRIMCLR_YELLOW, False) upiwin_tmp.rectangle(10, 110, 150, 150, FBPRIMCLR_WHITE, False) upiwin_tmp.line(10, 110, 150, 150, FBPRIMCLR_WHITE, False) upiwin_tmp.line(10, 150, 150, 110, FBPRIMCLR_WHITE, False) + +upiwin_tmp.line(0, 180, 319, 180, FBPRIMCLR_RED, False); +upiwin_tmp.line(0, 196, 319, 196, FBPRIMCLR_RED, False); upiwin_tmp.textout(10, 180, 'Amy was here!!!') diff --git a/src/fbprimitive.c b/src/fbprimitive.c index 189c62d..fe3e6ab 100644 --- a/src/fbprimitive.c +++ b/src/fbprimitive.c @@ -124,7 +124,8 @@ static void internal_textout(INT32 x, INT32 y, INT32 width, INT32 height, PBYTE BYTE b; PUINT16 dptr, lbuf; - Log(LDEBUG, "internal_textout(%d, %d, %d, %d, bits)", x, y, width, height); + if ((width == 0) && (height == 0)) + return; /* must be drawing a space */ if (((x + width) >= Fb_Info->width) || ((y + height) >= Fb_Info->height)) return; dptr = loc_from_coords(x, y);