[cairo-commit] boilerplate/cairo-boilerplate-xlib.c
Chris Wilson
ickle at kemper.freedesktop.org
Sat Jul 17 02:32:10 PDT 2010
boilerplate/cairo-boilerplate-xlib.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit bac5c28a18af5d43c96f0b64d1c7235da3f02779
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date: Sat Jul 17 10:09:14 2010 +0100
boilerplate: Offset the xlib window
An idea courtesy of Benjamin Otte is to stress the drivers a bit more by
not rendering to 0,0. Under various circumstances rendering to a Window
is mapped onto the Screen root Window with a collection of offsets and
clips by X. It is easy for the driver to make a mistake and misrender...
diff --git a/boilerplate/cairo-boilerplate-xlib.c b/boilerplate/cairo-boilerplate-xlib.c
index db42d67..fbc9990 100644
--- a/boilerplate/cairo-boilerplate-xlib.c
+++ b/boilerplate/cairo-boilerplate-xlib.c
@@ -302,11 +302,11 @@ _cairo_boilerplate_xlib_window_create_surface (const char *name,
/* tile the windows so threads do not overlap */
scr = XScreenOfDisplay (dpy, screen);
- x = y = 0;
+ x = 10; y = 15;
if (id-- > 1) do {
x += max_width;
if (x + max_width > WidthOfScreen (scr)) {
- x = 0;
+ x = 10;
y += max_height;
if (y + max_height > HeightOfScreen (scr)) {
XCloseDisplay (dpy);
More information about the cairo-commit
mailing list