commit 5035afe94f5e50d30249781fb6ab686f72e365d5
parent 5f7cd56600953bcffaa4b5e0063f94902114c184
Author: Samuel Dudik <samuel.dudik@gmail.com>
Date: Fri, 31 Jul 2020 14:59:52 +0200
Replace short with int
Diffstat:
2 files changed, 9 insertions(+), 10 deletions(-)
diff --git 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 unsigned short padding = 20;
+const static unsigned int padding = 20;
-const static unsigned short width = 300;
-const static unsigned short border_size = 2;
-const static unsigned short pos_x = 40;
-const static unsigned short pos_y = 50;
+const static unsigned int width = 300;
+const static unsigned int border_size = 2;
+const static unsigned int pos_x = 40;
+const static unsigned int pos_y = 50;
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
@@ -55,9 +55,9 @@ int main(int argc, char *argv[])
XftFont *font = XftFontOpenName(display, screen, font_pattern);
- unsigned short x = pos_x;
- unsigned short y = pos_y;
- unsigned short height = font->ascent - font->descent + padding * 2;
+ unsigned int x = pos_x;
+ unsigned int y = pos_y;
+ unsigned int height = font->ascent - font->descent + padding * 2;
switch (corner)
{