/* Displays a maximum of 20 char on the LCD.  */
void LCD_DisplayStringLine(uint16_t Line, uint8_t *ptr)
/* Displays a maximum of 20 char on the LCD.  */
void LCD_DisplayStringLine(uint16_t Line, uint8_t *ptr)
{
  uint16_t refcolumn = LCD_PIXEL_WIDTH - 1;
  if(LCD_ID == LCD_HX8347D)
  {
    refcolumn = 0;
    while ((*ptr != 0) & ((LCD_PIXEL_WIDTH - (refcolumn & 0xFFFF)) >= LCD_Currentfonts->Width))
    {
      LCD_DisplayChar(Line, refcolumn, *ptr);
      refcolumn += LCD_Currentfonts->Width;
      ptr++;
    }
  }
  else
  {
    while ((*ptr != 0) & (((refcolumn + 1) & 0xFFFF) >= LCD_Currentfonts->Width))
    {
      LCD_DisplayChar(Line, refcolumn, *ptr);
      refcolumn -= LCD_Currentfonts->Width;
      ptr++;
    }
  }
}