summaryrefslogtreecommitdiff
path: root/src/mesa/swrast/s_drawpix.c
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2006-10-11 22:21:55 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2006-10-11 22:21:55 +0000
commit8a5871a98c23ce1a1d893b681f59dc8c42228dd1 (patch)
tree80adfa732d431f2e1adb5b89621503399c3da326 /src/mesa/swrast/s_drawpix.c
parent55fa6a2fdbc9108f2d435b70cefb58e77bba903a (diff)
use GLvoid * for _swrast_write_zoomed_rgb/rgba_span() functions
Diffstat (limited to 'src/mesa/swrast/s_drawpix.c')
-rw-r--r--src/mesa/swrast/s_drawpix.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/mesa/swrast/s_drawpix.c b/src/mesa/swrast/s_drawpix.c
index 02db69a2a4..5be2934b40 100644
--- a/src/mesa/swrast/s_drawpix.c
+++ b/src/mesa/swrast/s_drawpix.c
@@ -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);