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);