--- degas/lib/libggi2d/default/linear_16/hline.c	Mon Feb  5 19:46:40 2001
+++ degas-original/lib/libggi2d/default/linear_16/hline.c	Wed Jan 13 16:38:58 1999
@@ -41,35 +41,9 @@
 
 static void drawHLine(struct ggi_visual *vis, ggi_sint x1, ggi_sint x2, ggi_sint y, pixel color)
 {
-        /* The current implementation will not work with 16-bpp modes, as the width
-	   is calculated by just finding the difference between the two values and
-	   then doing a memset - this is fine for 8-bpp but not for anything else. You
-	   end up with filled objects that are only half the horizontal size they should be
-	   
-	   So for now I have temporarily reworked the code to use the ggiDrawHLine function
-	   which does the operation correctly, however bitwise operations will not work
-	   properly. This code is used to draw things like filled objects so at least it
-	   can draw these correctly.
-	   
-	   Change contributed by Wayne Piekarski - wayne@cs.unisa.edu.au - UniSA Tinmith Project */
-
-
-	ggi_sint width;
-
-	/* If the X2 value is before X1, flip them around to start off */
-	if (x2 < x1)
-	  {
-	    ggi_sint temp = x1;
-	    x1 = x2;
-	    x2 = temp;
-	  }
-	
-	width = x2 - x1 + 1;
-	ggiSetGCForeground (vis, color);
-	ggiDrawHLine (vis, x1, y, width);
-	
-	/*
+	ggi_sint	width;
 	pixel	*ptr;
+	
 	CLIPHLINE(vis, x1, x2, y, width);
 	ptr	= LFBADDR(vis, x1, y);
 	width	= x2 - x1 + 1;
@@ -95,7 +69,6 @@
 	DRAWHLINE(ADD, *ptr + color )
 	DRAWHLINE(SUB, *ptr - color )
 	}
-	*/
 }
 
 void	GGIEXP(scanline)(struct ggi_visual *vis, ggi_sint x1, ggi_sint x2, ggi_sint y)
