MCPcopy Create free account
hub / github.com/crossuo/crossuo / DrawA

Method DrawA

src/TextEngine/EntryText.cpp:548–559  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

546}
547
548void CEntryText::DrawA(
549 uint8_t font, uint16_t color, int x, int y, TEXT_ALIGN_TYPE align, uint16_t flags)
550{
551 PrepareToDrawA(font, color, align, flags);
552 m_Texture.Draw(x + DrawOffset, y);
553 if (this == g_EntryPointer)
554 {
555 const int offsetTable[] = { 1, 2, 1, 1, 1, 2, 1, 1, 2, 2 };
556 const int offsY = offsetTable[font % 10];
557 m_CaretTexture.Draw(x + DrawOffset + CaretPos.X, y + offsY + CaretPos.Y);
558 }
559}
560
561void CEntryText::DrawW(
562 uint8_t font, uint16_t color, int x, int y, TEXT_ALIGN_TYPE align, uint16_t flags)

Callers 5

FUNCBODY_DrawTextAFunction · 0.45
RenderMethod · 0.45
DrawMethod · 0.45
DrawMethod · 0.45
DrawMaskAMethod · 0.45

Calls 1

DrawMethod · 0.45

Tested by

no test coverage detected