/* Optimised routine to draw a vertical line faster than setting individual pixels.  */
void lcdDrawVLine(uint16_t x, uint16_t y0, uint16_t y1, uint16_t color)
/* Optimised routine to draw a vertical line faster than setting individual pixels.  */
void lcdDrawVLine(uint16_t x, uint16_t y0, uint16_t y1, uint16_t color)
{
  lcdOrientation_t oldOrientation = lcdOrientation;
  if (oldOrientation == LCD_ORIENTATION_PORTRAIT)
  {
    lcdSetOrientation(LCD_ORIENTATION_LANDSCAPE);
    lcdDrawHLine(y0, y1, lcdGetHeight() - (x + 1), color);
  }
  else
  {
    lcdSetOrientation(LCD_ORIENTATION_PORTRAIT);
    lcdDrawHLine(lcdGetWidth() - (y0 + 1), lcdGetWidth() - (y1 + 1), x, color);
  }
  lcdSetOrientation(oldOrientation);
}