projects
/
monky
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix compiling with x11 by setting argb default on
[monky]
/
src
/
smapi.c
diff --git
a/src/smapi.c
b/src/smapi.c
index
d1a89a0
..
e6893b4
100644
(file)
--- a/
src/smapi.c
+++ b/
src/smapi.c
@@
-24,6
+24,7
@@
#define _GNU_SOURCE
#include "conky.h" /* text_buffer_size, PACKAGE_NAME, maybe more */
#include "smapi.h"
#define _GNU_SOURCE
#include "conky.h" /* text_buffer_size, PACKAGE_NAME, maybe more */
#include "smapi.h"
+#include "temphelper.h"
#include "logging.h"
#include <stdio.h>
#include <string.h>
#include "logging.h"
#include <stdio.h>
#include <string.h>
@@
-178,8
+179,8
@@
void print_smapi_bat_bar(struct text_object *obj, char *p, int p_max_size)
return;
if (obj->data.i >= 0 && smapi_bat_installed(obj->data.i))
return;
if (obj->data.i >= 0 && smapi_bat_installed(obj->data.i))
- new_bar(obj, p, (int)
+ new_bar(obj, p, p_max_size, (int)
(255 * smapi_get_bat_int(obj->data.i, "remaining_percent") / 100));
else
(255 * smapi_get_bat_int(obj->data.i, "remaining_percent") / 100));
else
- new_bar(obj, p, 0);
+ new_bar(obj, p, p_max_size, 0);
}
}