fix ogl blooper
authorBradley Bell <btb@icculus.org>
Sat, 7 Sep 2002 07:14:22 +0000 (07:14 +0000)
committerBradley Bell <btb@icculus.org>
Sat, 7 Sep 2002 07:14:22 +0000 (07:14 +0000)
2d/2dsline.c

index d1d34a4..aed00f9 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: 2dsline.c,v 1.7 2002-09-05 07:52:36 btb Exp $ */
+/* $Id: 2dsline.c,v 1.8 2002-09-07 07:14:22 btb Exp $ */
 /*
 THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
 SOFTWARE CORPORATION ("PARALLAX").  PARALLAX, IN DISTRIBUTING THE CODE TO
@@ -221,6 +221,9 @@ void gr_uscanline( int x1, int x2, int y )
                switch(TYPE)
                {
                case BM_LINEAR:
+#ifdef OGL
+               case BM_OGL:
+#endif
                        gr_linear_stosd( DATA + ROWSIZE*y + x1, (unsigned char)COLOR, x2-x1+1);
                        break;
 #ifdef __MSDOS__
@@ -244,6 +247,9 @@ void gr_uscanline( int x1, int x2, int y )
                switch(TYPE)
                {
                case BM_LINEAR:
+#ifdef OGL
+               case BM_OGL:
+#endif
                        gr_linear_darken( DATA + ROWSIZE*y + x1, Gr_scanline_darkening_level, x2-x1+1, gr_fade_table);
                        break;
 #ifdef __MSDOS__