kwo pushed a commit to branch master. http://git.enlightenment.org/e16/e16.git/commit/?id=91514a94278cb7bdc4533f595b7c6eec9afa000c
commit 91514a94278cb7bdc4533f595b7c6eec9afa000c Author: Kim Woelders <k...@woelders.dk> Date: Sat Apr 19 18:41:17 2014 +0200 Minor tweak in EXFillAreaSolid(). --- src/x.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/x.c b/src/x.c index bf85457..e5f6994 100644 --- a/src/x.c +++ b/src/x.c @@ -1,6 +1,6 @@ /* * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors - * Copyright (C) 2004-2013 Kim Woelders + * Copyright (C) 2004-2014 Kim Woelders * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to @@ -1694,9 +1694,10 @@ EXFillAreaSolid(Drawable dst, int x, int y, unsigned int w, unsigned int h, unsigned int pixel) { GC gc; + XGCValues gcv; - gc = EXCreateGC(dst, 0, NULL); - XSetForeground(disp, gc, pixel); + gcv.foreground = pixel; + gc = EXCreateGC(dst, GCForeground, &gcv); XFillRectangle(disp, dst, gc, x, y, w, h); EXFreeGC(gc); } --