checking out text rendering
This commit is contained in:
parent
608fbec2bf
commit
161a854502
|
@ -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.rectangle(10, 110, 150, 150, FBPRIMCLR_WHITE, False)
|
||||||
upiwin_tmp.line(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(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!!!')
|
upiwin_tmp.textout(10, 180, 'Amy was here!!!')
|
||||||
|
|
|
@ -124,7 +124,8 @@ static void internal_textout(INT32 x, INT32 y, INT32 width, INT32 height, PBYTE
|
||||||
BYTE b;
|
BYTE b;
|
||||||
PUINT16 dptr, lbuf;
|
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))
|
if (((x + width) >= Fb_Info->width) || ((y + height) >= Fb_Info->height))
|
||||||
return;
|
return;
|
||||||
dptr = loc_from_coords(x, y);
|
dptr = loc_from_coords(x, y);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user