Move variable into scope where it is used.

SVN revision: 59968
This commit is contained in:
Kim Woelders 2011-06-05 14:53:52 +00:00
parent ff3724295a
commit 89d43e4f1b
1 changed files with 2 additions and 1 deletions

View File

@ -555,7 +555,6 @@ BackgroundRealize(Background * bg, Win win, Drawable draw, unsigned int rw,
unsigned long *ppixel)
{
Pixmap pmap;
GC gc;
int x, y, ww, hh;
unsigned int w, h;
char *file, hasbg, hasfg;
@ -590,6 +589,8 @@ BackgroundRealize(Background * bg, Win win, Drawable draw, unsigned int rw,
if (!is_win)
{
GC gc;
gc = EXCreateGC(draw, 0, NULL);
XSetClipMask(disp, gc, 0);
XSetFillStyle(disp, gc, FillSolid);