/* Draws a horizontral line from (x1,y) to (x2,y) of GrayScale level.  */
void halLcdHLine(int x1, int x2, int y, unsigned char GrayScale)
/* Draws a horizontral line from (x1,y) to (x2,y) of GrayScale level.  */
void halLcdHLine(int x1, int x2, int y, unsigned char GrayScale)
{
  int x_dir, x;
  if ( x1 < x2 )
    x_dir = 1;
  else
    x_dir = -1;
  x = x1;
  while (x != x2)
  {
    halLcdPixel( x,y, GrayScale);
    x += x_dir;
  }
}