Krolyxon
Commit 376c0d9

Branches

Refs →

nsxiv376c0d9

Bigger background pixmap

Author
Bert
Date
2011-01-20 22:02 +0100
Parent
029e120
Commit
376c0d90c7d9162c05e693c198911a4cf000f5a3

+7 −4

1 file changed

  1. M window.c +7 −4
M window.c View
@@ -120,14 +120,17 @@ int win_configure(win_t *win, XConfigureEvent *cev) {
120120 }
121121
122122 void win_clear(win_t *win) {
123+ win_env_t *e;
124+
123125 if (!win)
124126 return;
125127
128+ e = &win->env;
129+
126130 if (win->pm)
127− XFreePixmap(win->env.dpy, win->pm);
128− win->pm = XCreatePixmap(win->env.dpy, win->xwin, win->w, win->h,
129− win->env.depth);
130− XFillRectangle(win->env.dpy, win->pm, win->bgc, 0, 0, win->w, win->h);
131+ XFreePixmap(e->dpy, win->pm);
132+ win->pm = XCreatePixmap(e->dpy, win->xwin, e->scrw, e->scrh, e->depth);
133+ XFillRectangle(e->dpy, win->pm, win->bgc, 0, 0, e->scrw, e->scrh);
131134 }
132135
133136 void win_draw(win_t *win) {