glamor: Fix up DrawPixels arguments to bear some relation to reality.
This commit is contained in:
parent
74f262bcdb
commit
fbbdd788cb
|
@ -146,10 +146,11 @@ glamor_set_spans(DrawablePtr drawable, GCPtr gc, char *src,
|
||||||
if (!glamor_set_destination_pixmap(dest_pixmap))
|
if (!glamor_set_destination_pixmap(dest_pixmap))
|
||||||
return;
|
return;
|
||||||
for (i = 0; i < n; i++) {
|
for (i = 0; i < n; i++) {
|
||||||
glDrawPixels(points[i].x - dest_pixmap->screen_x,
|
glRasterPos2i(points[i].x - dest_pixmap->screen_x,
|
||||||
points[i].y - dest_pixmap->screen_y,
|
points[i].y - dest_pixmap->screen_y);
|
||||||
widths[i],
|
glDrawPixels(widths[i],
|
||||||
1,
|
1,
|
||||||
|
GL_RGBA, GL_UNSIGNED_BYTE,
|
||||||
src);
|
src);
|
||||||
src += PixmapBytePad(widths[i], drawable->depth);
|
src += PixmapBytePad(widths[i], drawable->depth);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue