Skip to content

Commit d123764

Browse files
committed
small text render fix for 3.0 release
1 parent 4c17a47 commit d123764

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/graphics/GraphicsDeviceRenderer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ namespace tcgfx {
406406
if(handler) {
407407
handler->setDrawColor(drawColor);
408408
setTcFontAccordingToMag(handler, font, mag);
409-
handler->setCursor((int)where.x, (int)where.y + handler->getYAdvance());
409+
handler->setCursor((int)where.x, (int)where.y + (handler->getYAdvance() - handler->getBaseline()));
410410
handler->print(text);
411411
} else {
412412
internalDrawText(where, font, mag, text);

0 commit comments

Comments
 (0)