mirror of https://github.com/jorio/Pomme.git
DrawChar: Advance pen position even if offscreen
This commit is contained in:
parent
d83a70ea70
commit
fd1cd2cf81
|
@ -655,6 +655,9 @@ void DrawChar(char c)
|
||||||
dstRect.right = dstRect.left + SysFont::widthBits;
|
dstRect.right = dstRect.left + SysFont::widthBits;
|
||||||
dstRect.bottom = dstRect.top + SysFont::rows;
|
dstRect.bottom = dstRect.top + SysFont::rows;
|
||||||
|
|
||||||
|
// Advance pen position
|
||||||
|
penX += glyph.width;
|
||||||
|
|
||||||
Rect clippedDstRect = dstRect;
|
Rect clippedDstRect = dstRect;
|
||||||
if (!IntersectRects(&curPort->port.portRect, &clippedDstRect))
|
if (!IntersectRects(&curPort->port.portRect, &clippedDstRect))
|
||||||
{
|
{
|
||||||
|
@ -688,6 +691,4 @@ void DrawChar(char c)
|
||||||
|
|
||||||
dst2 += curPort->pixels.width;
|
dst2 += curPort->pixels.width;
|
||||||
}
|
}
|
||||||
|
|
||||||
penX += glyph.width;
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue