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))
|
||||
return;
|
||||
for (i = 0; i < n; i++) {
|
||||
glDrawPixels(points[i].x - dest_pixmap->screen_x,
|
||||
points[i].y - dest_pixmap->screen_y,
|
||||
widths[i],
|
||||
glRasterPos2i(points[i].x - dest_pixmap->screen_x,
|
||||
points[i].y - dest_pixmap->screen_y);
|
||||
glDrawPixels(widths[i],
|
||||
1,
|
||||
GL_RGBA, GL_UNSIGNED_BYTE,
|
||||
src);
|
||||
src += PixmapBytePad(widths[i], drawable->depth);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user