use GLvoid * for _swrast_write_zoomed_rgb/rgba_span() functions
authorBrian Paul <brian.paul@tungstengraphics.com>
Wed, 11 Oct 2006 22:21:55 +0000 (22:21 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Wed, 11 Oct 2006 22:21:55 +0000 (22:21 +0000)
src/mesa/swrast/s_copypix.c
src/mesa/swrast/s_drawpix.c
src/mesa/swrast/s_zoom.c
src/mesa/swrast/s_zoom.h

index 2654df3e48662c317a7e89b84b9ca68029ff062f..be794e38e2a9fcc1e5821819f8784be8e00b230a 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * Mesa 3-D graphics library
- * Version:  6.5.1
+ * Version:  6.5.2
  *
  * Copyright (C) 1999-2006  Brian Paul   All Rights Reserved.
  *
@@ -226,7 +226,7 @@ copy_conv_rgba_pixels(GLcontext *ctx, GLint srcx, GLint srcy,
          span.end = width;
          if (zoom) {
             _swrast_write_zoomed_rgba_span(ctx, destx, desty, &span, 
-                                        (CONST GLchan (*)[4])span.array->rgba);
+                                           span.array->rgba);
          }
          else {
             _swrast_write_rgba_span(ctx, &span);
@@ -362,7 +362,7 @@ copy_rgba_pixels(GLcontext *ctx, GLint srcx, GLint srcy,
          span.end = width;
          if (zoom) {
             _swrast_write_zoomed_rgba_span(ctx, destx, desty, &span,
-                                       (CONST GLchan (*)[4]) span.array->rgba);
+                                           span.array->rgba);
          }
          else {
             _swrast_write_rgba_span(ctx, &span);
@@ -605,7 +605,7 @@ copy_depth_pixels( GLcontext *ctx, GLint srcx, GLint srcy,
       if (fb->Visual.rgbMode) {
          if (zoom)
             _swrast_write_zoomed_rgba_span(ctx, destx, desty, &span, 
-                                       (const GLchan (*)[4]) span.array->rgba);
+                                           span.array->rgba);
          else
             _swrast_write_rgba_span(ctx, &span);
       }
index 02db69a2a44243c9a993b336f49e321dc157af23..5be2934b409d079e85a3132c98828a3bf8a547c3 100644 (file)
@@ -130,8 +130,7 @@ fast_draw_pixels(GLcontext *ctx, GLint x, GLint y,
             span.x = destX;
             span.y = destY + row;
             span.end = drawWidth;
-            _swrast_write_zoomed_rgba_span(ctx, imgX, imgY, &span,
-                                           (CONST GLchan (*)[4]) src);
+            _swrast_write_zoomed_rgba_span(ctx, imgX, imgY, &span, src);
             src += unpack.RowLength * 4;
          }
       }
@@ -156,8 +155,7 @@ fast_draw_pixels(GLcontext *ctx, GLint x, GLint y,
             span.x = destX;
             span.y = destY;
             span.end = drawWidth;
-            _swrast_write_zoomed_rgb_span(ctx, imgX, imgY, &span, 
-                                          (CONST GLchan (*)[3]) src);
+            _swrast_write_zoomed_rgb_span(ctx, imgX, imgY, &span, src);
             src += unpack.RowLength * 3;
                destY++;
          }
@@ -200,8 +198,7 @@ fast_draw_pixels(GLcontext *ctx, GLint x, GLint y,
             span.x = destX;
             span.y = destY;
             span.end = drawWidth;
-            _swrast_write_zoomed_rgb_span(ctx, imgX, imgY, &span,
-                                          (CONST GLchan (*)[3]) rgb);
+            _swrast_write_zoomed_rgb_span(ctx, imgX, imgY, &span, rgb);
             src += unpack.RowLength;
             destY++;
          }
@@ -247,7 +244,7 @@ fast_draw_pixels(GLcontext *ctx, GLint x, GLint y,
             span.y = destY;
             span.end = drawWidth;
             _swrast_write_zoomed_rgba_span(ctx, imgX, imgY, &span,
-                                           (CONST GLchan (*)[4]) span.array->rgba);
+                                           span.array->rgba);
             src += unpack.RowLength*2;
             destY++;
          }
@@ -281,7 +278,7 @@ fast_draw_pixels(GLcontext *ctx, GLint x, GLint y,
                span.y = destY;
                span.end = drawWidth;
                _swrast_write_zoomed_rgba_span(ctx, imgX, imgY, &span,
-                                              (CONST GLchan (*)[4]) span.array->rgba);
+                                              span.array->rgba);
                src += unpack.RowLength;
                destY++;
             }
@@ -677,7 +674,7 @@ draw_rgba_pixels( GLcontext *ctx, GLint x, GLint y,
             }
             else if (zoom) {
                _swrast_write_zoomed_rgba_span(ctx, imgX, imgY, &span,
-                                       (CONST GLchan (*)[4]) span.array->rgba);
+                                              span.array->rgba);
             }
             else {
                _swrast_write_rgba_span(ctx, &span);
index eb44c88b076df38ea41a8f37acefa1671d82fe67..29b8df41b7e42dce1f393f8e4acf8e6a984d8877 100644 (file)
@@ -343,20 +343,18 @@ zoom_span( GLcontext *ctx, GLint imgX, GLint imgY, const SWspan *span,
 
 
 void
-_swrast_write_zoomed_rgba_span( GLcontext *ctx, GLint imgX, GLint imgY,
-                               const SWspan *span,
-                               CONST GLchan rgba[][4])
+_swrast_write_zoomed_rgba_span(GLcontext *ctx, GLint imgX, GLint imgY,
+                               const SWspan *span, const GLvoid *rgba)
 {
-   zoom_span(ctx, imgX, imgY, span, (const GLvoid *) rgba, GL_RGBA);
+   zoom_span(ctx, imgX, imgY, span, rgba, GL_RGBA);
 }
 
 
 void
 _swrast_write_zoomed_rgb_span(GLcontext *ctx, GLint imgX, GLint imgY,
-                              const SWspan *span,
-                              CONST GLchan rgb[][3])
+                              const SWspan *span, const GLvoid *rgb)
 {
-   zoom_span(ctx, imgX, imgY, span, (const GLvoid *) rgb, GL_RGB);
+   zoom_span(ctx, imgX, imgY, span, rgb, GL_RGB);
 }
 
 
index a7750dcaa3010aaf16d7dc9b97c7ac6092caca04..6ca11ac2111d9c75d4bf0eef3abba3a6efcb4188 100644 (file)
 
 extern void
 _swrast_write_zoomed_rgba_span(GLcontext *ctx, GLint imgX, GLint imgY,
-                               const SWspan *span,
-                               CONST GLchan rgb[][4]);
+                               const SWspan *span, const GLvoid *rgba);
 
 extern void
 _swrast_write_zoomed_rgb_span(GLcontext *ctx, GLint imgX, GLint imgY,
-                              const SWspan *span,
-                              CONST GLchan rgb[][3]);
+                              const SWspan *span, const GLvoid *rgb);
 
 extern void
 _swrast_write_zoomed_index_span(GLcontext *ctx, GLint imgX, GLint imgY,