aboutsummaryrefslogtreecommitdiffstats
path: root/gadgets
diff options
context:
space:
mode:
authorgotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2>2007-12-13 02:16:49 +0000
committergotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2>2007-12-13 02:16:49 +0000
commit3e10817e2c4cae7038d738e4cd5d00074efb59a3 (patch)
treeaf225d38c56d6109a5e7aa716607afe1c612b77a /gadgets
parentea71fbbac344861b7d7b41af05f17cad297a5cae (diff)
downloaddzen-3e10817e2c4cae7038d738e4cd5d00074efb59a3.tar.gz
dzen-3e10817e2c4cae7038d738e4cd5d00074efb59a3.zip
added additional _NET_WM_STRUT support
git-svn-id: http://dzen.googlecode.com/svn/trunk@172 f2baff5b-bf2c-0410-a398-912abdc3d8b2
Diffstat (limited to 'gadgets')
-rw-r--r--gadgets/gdbar.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gadgets/gdbar.c b/gadgets/gdbar.c
index c5364f1..f905542 100644
--- a/gadgets/gdbar.c
+++ b/gadgets/gdbar.c
@@ -44,7 +44,7 @@ pbar(const char* label, double perc, int maxc, int height, int pnl, int mode) {
l = perc * ((mode ? (double)(maxc-2) : (double) maxc) / 100);
if((int)(l + 0.5) >= (int)l)
- l = l + 0.5;
+ l += 0.5;
if((int)(perc + 0.5) >= (int)perc)
rp = (int)(perc + 0.5);
@@ -67,7 +67,7 @@ pbar(const char* label, double perc, int maxc, int height, int pnl, int mode) {
fflush(stdout);
}
- int
+int
main(int argc, char *argv[])
{
int i, nv;