示例#1
0
文件: mylib.c 项目: rbfarr/Spy-Hunter
//Draws a string
void drawString3(int r, int c, const char* str, u16 fg_color, u16 bg_color) {
	int char_count = 0;
	while (*str != 0) {
		drawChar3(r, c+TEXT_WIDTH*char_count, *str, fg_color, bg_color);
		char_count++;
		str++;
	}
}
示例#2
0
void drawString3(int row, int col, char *str, unsigned short color)
{
    while(*str != '\0')
    {
        drawChar3(row, col, *str, color);
        str++;
        col += 6;
    }
}