/* Draws a rectangle inside a LCD buffer, at the given coordinates.  */
void LCDD_DrawRectangle(void *pBuffer, unsigned int x, unsigned int y, unsigned int width, unsigned int height, unsigned int color)
/* Draws a rectangle inside a LCD buffer, at the given coordinates.  */
void LCDD_DrawRectangle(void *pBuffer, unsigned int x, unsigned int y, unsigned int width, unsigned int height, unsigned int color)
{
    unsigned int rx, ry;
    for (ry=0; ry < height; ry++) {
        for (rx=0; rx < width; rx++) {
            LCDD_DrawPixel(pBuffer, x+rx, y+ry, color);
        }
    }
}