mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-06 10:28:03 +02:00
glamor: Fix up DrawPixels arguments to bear some relation to reality.
This commit is contained in:
parent
74f262bcdb
commit
fbbdd788cb
1 changed files with 4 additions and 3 deletions
|
|
@ -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…
Add table
Reference in a new issue