Skip to content

Commit 2833b1c

Browse files
Laurence BankLaurence Bank
authored andcommitted
fixed text wrap for 6x8 and 8x8 fonts
1 parent c2894e3 commit 2833b1c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/obd.inl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4298,6 +4298,7 @@ unsigned char c, *s, ucTemp[40];
42984298
pOBD->iCursorX += iLen;
42994299
if (pOBD->iCursorX >= pOBD->width-7 && pOBD->wrap) // word wrap enabled?
43004300
{
4301+
obdCachedFlush(pOBD, bRender);
43014302
pOBD->iCursorX = 0; // start at the beginning of the next line
43024303
pOBD->iCursorY+=8;
43034304
obdSetPosition(pOBD, pOBD->iCursorX, pOBD->iCursorY, bRender);
@@ -4572,6 +4573,7 @@ unsigned char c, *s, ucTemp[40];
45724573
iFontSkip = 0;
45734574
if (pOBD->iCursorX >= pOBD->width-5 && pOBD->wrap) // word wrap enabled?
45744575
{
4576+
obdCachedFlush(pOBD, bRender);
45754577
pOBD->iCursorX = 0; // start at the beginning of the next line
45764578
pOBD->iCursorY +=8;
45774579
obdSetPosition(pOBD, pOBD->iCursorX, pOBD->iCursorY, bRender);

0 commit comments

Comments
 (0)