Replace short with int
authorSamuel Dudik <redacted>
Fri, 31 Jul 2020 12:59:52 +0000 (14:59 +0200)
committerSamuel Dudik <redacted>
Fri, 31 Jul 2020 12:59:52 +0000 (14:59 +0200)
config.h
herbe.c

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 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
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);
 
-       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)
        {