/
index
/
herbe.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
inline
| side by side (parent:
5f7cd56
)
Replace short with int
author
Samuel Dudik
<redacted>
Fri, 31 Jul 2020 12:59:52 +0000
(14:59 +0200)
committer
Samuel Dudik
<redacted>
Fri, 31 Jul 2020 12:59:52 +0000
(14:59 +0200)
config.h
patch
|
blob
|
history
herbe.c
patch
|
blob
|
history
diff --git
a/config.h
b/config.h
index 488c6b4e13f080a8b1c76aa8a3a55c9250694e00..862c2dbcb9628c734cd4d433081be8e8c43e528b 100644
(file)
--- a/
config.h
+++ b/
config.h
@@
-2,14
+2,14
@@
const static char *background_color = "#3e3e3e";
const static char *border_color = "#ececec";
const static char *font_color = "#ececec";
const static char *font_pattern = "Inconsolata:style=Medium:size=15";
const static char *border_color = "#ececec";
const static char *font_color = "#ececec";
const static char *font_pattern = "Inconsolata:style=Medium:size=15";
-const static unsigned
shor
t padding = 20;
+const static unsigned
in
t padding = 20;
-const static unsigned
shor
t width = 300;
-const static unsigned
shor
t border_size = 2;
-const static unsigned
shor
t pos_x = 40;
-const static unsigned
shor
t pos_y = 50;
+const static unsigned
in
t width = 300;
+const static unsigned
in
t border_size = 2;
+const static unsigned
in
t pos_x = 40;
+const static unsigned
in
t pos_y = 50;
enum corners { TOP_LEFT, TOP_RIGHT, BOTTOM_LEFT, BOTTOM_RIGHT };
enum corners corner = TOP_RIGHT;
enum corners { TOP_LEFT, TOP_RIGHT, BOTTOM_LEFT, BOTTOM_RIGHT };
enum corners corner = TOP_RIGHT;
-const static unsigned short duration = 5; /* in seconds */
\ No newline at end of file
+const static unsigned int duration = 5; /* in seconds */
diff --git
a/herbe.c
b/herbe.c
index 2de93ee0ece2ddf068e104699462a1a23fe9484e..382bb368eaa7b5bbd2443aac3d82ac9017920cf1 100644
(file)
--- a/
herbe.c
+++ b/
herbe.c
@@
-55,9
+55,9
@@
int main(int argc, char *argv[])
XftFont *font = XftFontOpenName(display, screen, font_pattern);
XftFont *font = XftFontOpenName(display, screen, font_pattern);
- unsigned
shor
t x = pos_x;
- unsigned
shor
t y = pos_y;
- unsigned
shor
t height = font->ascent - font->descent + padding * 2;
+ unsigned
in
t x = pos_x;
+ unsigned
in
t y = pos_y;
+ unsigned
in
t height = font->ascent - font->descent + padding * 2;
switch (corner)
{
switch (corner)
{