コード例 #1
0
ファイル: directui.c プロジェクト: hoangduit/reactos
VOID
UiDrawText(IN ULONG X,
           IN ULONG Y,
           IN PCSTR Text,
           IN UCHAR Attr)
{
    ULONG i, j;

    /* Draw the text character by character, but don't exceed the width */
    for (i = X, j = 0; Text[j] && i < UiScreenWidth; i++, j++)
    {
        /* Write the character */
        MachVideoPutChar(Text[j], Attr, i, Y);
    }
}
コード例 #2
0
ファイル: i386bug.c プロジェクト: HBelusca/NasuTek-Odyssey
void
i386PrintText(char *pszText)
{
    char chr;
    while (1)
    {
        chr = *pszText++;

        if (chr == 0) break;
        if (chr == '\n')
        {
            i386_ScreenPosY++;
            i386_ScreenPosX = 0;
            continue;
        }

        MachVideoPutChar(chr, SCREEN_ATTR, i386_ScreenPosX, i386_ScreenPosY);
        i386_ScreenPosX++;
    }
}
コード例 #3
0
ファイル: i386bug.c プロジェクト: HBelusca/NasuTek-Odyssey
void
i386PrintChar(char chr, ULONG x, ULONG y)
{
    MachVideoPutChar(chr, SCREEN_ATTR, x, y);
}