changeset: 9:ac97f7a70630
tag: tip
user: Connor Lane Smith <cls_AT_lubutu.com>
date: Thu Aug 05 15:58:14 2010 +0100
files: setcanvas.c
description:
removed useless vars
diff -r ce2c92388d3a -r ac97f7a70630 setcanvas.c
--- a/setcanvas.c Thu Aug 05 15:41:47 2010 +0100
+++ b/setcanvas.c Thu Aug 05 15:58:14 2010 +0100
@@ -4,13 +4,9 @@
void
setcanvas(DC *dc, unsigned int w, unsigned int h) {
- int screen;
- Window root;
-
- screen = DefaultScreen(dc->dpy);
- root = RootWindow(dc->dpy, screen);
- dc->canvas = XCreatePixmap(dc->dpy, root, w, h, DefaultDepth(dc->dpy, screen));
- dc->gc = XCreateGC(dc->dpy, root, 0, NULL);
+ dc->canvas = XCreatePixmap(dc->dpy, DefaultRootWindow(dc->dpy), w, h,
+ DefaultDepth(dc->dpy, DefaultScreen(dc->dpy)));
+ dc->gc = XCreateGC(dc->dpy, DefaultRootWindow(dc->dpy), 0, NULL);
XSetLineAttributes(dc->dpy, dc->gc, 1, LineSolid, CapButt, JoinMiter);
dc->x = dc->y = 0;
Received on Thu Aug 05 2010 - 16:58:19 CEST
This archive was generated by hypermail 2.2.0 : Thu Aug 05 2010 - 17:00:07 CEST