glamor: Use a nicer struct initializer for gcops.
This commit is contained in:
parent
4d52ae7f2d
commit
b530cdea4a
|
@ -86,13 +86,13 @@ glamor_set_spans(DrawablePtr drawable, GCPtr gc, char *src,
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* glamor_poly_line() checks if it can accelerate the lines as a group of
|
* glamor_poly_lines() checks if it can accelerate the lines as a group of
|
||||||
* horizontal or vertical lines (rectangles), and uses existing rectangle fill
|
* horizontal or vertical lines (rectangles), and uses existing rectangle fill
|
||||||
* acceleration if so.
|
* acceleration if so.
|
||||||
*/
|
*/
|
||||||
static void
|
static void
|
||||||
glamor_poly_line(DrawablePtr drawable, GCPtr gc, int mode, int n,
|
glamor_poly_lines(DrawablePtr drawable, GCPtr gc, int mode, int n,
|
||||||
DDXPointPtr points)
|
DDXPointPtr points)
|
||||||
{
|
{
|
||||||
ScreenPtr screen = drawable->pScreen;
|
ScreenPtr screen = drawable->pScreen;
|
||||||
PixmapPtr screen_pixmap = screen->GetScreenPixmap(screen);
|
PixmapPtr screen_pixmap = screen->GetScreenPixmap(screen);
|
||||||
|
@ -156,26 +156,26 @@ glamor_poly_line(DrawablePtr drawable, GCPtr gc, int mode, int n,
|
||||||
}
|
}
|
||||||
|
|
||||||
GCOps glamor_gc_ops = {
|
GCOps glamor_gc_ops = {
|
||||||
glamor_fill_spans,
|
.FillSpans = glamor_fill_spans,
|
||||||
glamor_set_spans,
|
.SetSpans = glamor_set_spans,
|
||||||
glamor_put_image,
|
.PutImage = glamor_put_image,
|
||||||
miCopyArea,
|
.CopyArea = miCopyArea,
|
||||||
miCopyPlane,
|
.CopyPlane = miCopyPlane,
|
||||||
miPolyPoint,
|
.PolyPoint = miPolyPoint,
|
||||||
glamor_poly_line,
|
.Polylines = glamor_poly_lines,
|
||||||
miPolySegment,
|
.PolySegment = miPolySegment,
|
||||||
miPolyRectangle,
|
.PolyRectangle = miPolyRectangle,
|
||||||
miPolyArc,
|
.PolyArc = miPolyArc,
|
||||||
miFillPolygon,
|
.FillPolygon = miFillPolygon,
|
||||||
miPolyFillRect,
|
.PolyFillRect = miPolyFillRect,
|
||||||
miPolyFillArc,
|
.PolyFillArc = miPolyFillArc,
|
||||||
miPolyText8,
|
.PolyText8 = miPolyText8,
|
||||||
miPolyText16,
|
.PolyText16 = miPolyText16,
|
||||||
miImageText8,
|
.ImageText8 = miImageText8,
|
||||||
miImageText16,
|
.ImageText16 = miImageText16,
|
||||||
miImageGlyphBlt,
|
.ImageGlyphBlt = miImageGlyphBlt,
|
||||||
miPolyGlyphBlt,
|
.PolyGlyphBlt = miPolyGlyphBlt,
|
||||||
miPushPixels,
|
.PushPixels = miPushPixels,
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue