summaryrefslogtreecommitdiff
path: root/src/cairo-xlib-screen.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2009-09-11 14:59:58 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2009-09-11 14:59:58 +0100
commit33be73dfb76c26e3bb0ab59b2f570d00d9c7be62 (patch)
tree3278fbe136ce6f2d66fa7f904be73c1aff5b4073 /src/cairo-xlib-screen.c
parent6960162c5eae30e2d48992023be35e3dbf502a03 (diff)
downloadcairo-33be73dfb76c26e3bb0ab59b2f570d00d9c7be62.tar.gz
[xlib] Fix big-line.
Project lines that exceed the 16.16 limits onto the XFixedLine, as we know that top/bottom must fit within the confines of the surface and so will be less than 16 bits. Sadly this is a run-on patch that also does: 1. Make FillTiled the default for new GCs. 2. Stores extend mode as opposed to repeat, and thereby cleaning up some inconsistent code. 3. Remove the special casing for unbounded trapezoids, as it is redundant with the polygon clipping. 4. Tidy the logic for deciding when to use the core protocol (_categorize_composite_operation)
Diffstat (limited to 'src/cairo-xlib-screen.c')
-rw-r--r--src/cairo-xlib-screen.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/cairo-xlib-screen.c b/src/cairo-xlib-screen.c
index 331fdb3a1..79d8c0dec 100644
--- a/src/cairo-xlib-screen.c
+++ b/src/cairo-xlib-screen.c
@@ -414,9 +414,10 @@ _cairo_xlib_screen_get_gc (cairo_xlib_screen_t *info,
}
gcv.graphics_exposures = False;
+ gcv.fill_style = FillTiled;
return XCreateGC (_cairo_xlib_display_get_dpy (info->display),
drawable,
- GCGraphicsExposures, &gcv);
+ GCGraphicsExposures | GCFillStyle, &gcv);
}
void
@@ -481,9 +482,10 @@ _cairo_xlib_screen_get_gc (cairo_xlib_screen_t *info,
XGCValues gcv;
gcv.graphics_exposures = False;
+ gcv.fill_style = FillTiled;
gc = XCreateGC (_cairo_xlib_display_get_dpy (info->display),
drawable,
- GCGraphicsExposures, &gcv);
+ GCGraphicsExposures | GCFillStyle, &gcv);
}
return gc;