diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2009-03-16 16:32:02 -0400 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2009-03-16 16:32:02 -0400 |
commit | c4f9a30634779bc985a470df2bc9f7e4fa0e6ad0 (patch) | |
tree | 344109f3cf5591ba3afb0a137a18abd3f9250082 /pango-view/viewer-x.c | |
parent | a6af36b9c06b81ab8095afff85f68f37c27a4b3b (diff) | |
download | pango-c4f9a30634779bc985a470df2bc9f7e4fa0e6ad0.tar.gz |
[pango-view] Clear background in _render
Diffstat (limited to 'pango-view/viewer-x.c')
-rw-r--r-- | pango-view/viewer-x.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/pango-view/viewer-x.c b/pango-view/viewer-x.c index 89864c08..25492f33 100644 --- a/pango-view/viewer-x.c +++ b/pango-view/viewer-x.c @@ -66,18 +66,10 @@ x_view_create_surface (gpointer instance, { XViewer *x = (XViewer *) instance; Pixmap pixmap; - GC gc; pixmap = XCreatePixmap (x->display, DefaultRootWindow (x->display), width, height, DefaultDepth (x->display, x->screen)); - gc = XCreateGC (x->display, pixmap, 0, NULL); - - XSetForeground (x->display, gc, WhitePixel (x->display, x->screen)); - XFillRectangle (x->display, pixmap, gc, 0, 0, width, height); - - XFreeGC (x->display, gc); - return (gpointer) pixmap; } |