/* Draws a string inside a LCD buffer, at the given coordinates. Line breaks will be honored.  */
void LCDD_DrawString(void *pBuffer, unsigned int x, unsigned int y, const char *pString, unsigned int color)
/* Draws a string inside a LCD buffer, at the given coordinates. Line breaks will be honored.  */
void LCDD_DrawString(void *pBuffer, unsigned int x, unsigned int y, const char *pString, unsigned int color)
{
    unsigned xorg = x;
    while (*pString != 0) {
        if (*pString == '\n') {
            y += gFont.height + 2;
            x = xorg;
        }
        else {
            LCDD_DrawChar(pBuffer, x, y, *pString, color);
            x += gFont.width + 2;
        }
        pString++;
    }
}