checking out text rendering

This commit is contained in:
Amy G. Bowersox 2019-12-08 00:07:28 -07:00
parent 608fbec2bf
commit 161a854502
2 changed files with 5 additions and 1 deletions

View File

@ -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!!!')

View File

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