/*
* Mesa 3-D graphics library
- * Version: 6.5.1
+ * Version: 6.5.2
*
* Copyright (C) 1999-2006 Brian Paul All Rights Reserved.
*
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);
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);
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);
}
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;
}
}
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++;
}
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++;
}
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++;
}
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++;
}
}
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);
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);
}
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,