void DisplayConsole(void) { int n, index; if (gConsoleDisplay == 0) return; maSetClipRect(0, 0, EXTENT_X(sConsole.screenSize), EXTENT_Y(sConsole.screenSize)); if(gConsoleDrawBackground) { maSetColor(gConsoleBackgroundColor); maFillRect(0, 0, EXTENT_X(sConsole.screenSize), EXTENT_Y(sConsole.screenSize)); } maSetColor(gConsoleTextColor); for (n = 0; n < sConsole.height; n++) { index = (n + sConsole.firstLine) % sConsole.height; maDrawTextW(0, n * sConsole.fontHeight, sConsole.lines[index].line); } maUpdateScreen(); }
static void soft_drawTextW(int left, int top, const wchar_t* text) { maDrawTextW(sCurrentOffset.x + left, sCurrentOffset.y + top, text); }