diff options
author | Brian Paul <[email protected]> | 2006-10-11 22:21:55 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2006-10-11 22:21:55 +0000 |
commit | 8a5871a98c23ce1a1d893b681f59dc8c42228dd1 (patch) | |
tree | 80adfa732d431f2e1adb5b89621503399c3da326 /src/mesa/swrast/s_drawpix.c | |
parent | 55fa6a2fdbc9108f2d435b70cefb58e77bba903a (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.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/src/mesa/swrast/s_drawpix.c b/src/mesa/swrast/s_drawpix.c index 02db69a2a44..5be2934b409 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); |