Replace short with int

This commit is contained in:
Samuel Dudik 2020-07-31 14:59:52 +02:00
parent 5f7cd56600
commit 5035afe94f
2 changed files with 9 additions and 9 deletions

View file

@ -2,14 +2,14 @@ const static char *background_color = "#3e3e3e";
const static char *border_color = "#ececec"; const static char *border_color = "#ececec";
const static char *font_color = "#ececec"; const static char *font_color = "#ececec";
const static char *font_pattern = "Inconsolata:style=Medium:size=15"; 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 int width = 300;
const static unsigned short border_size = 2; const static unsigned int border_size = 2;
const static unsigned short pos_x = 40; const static unsigned int pos_x = 40;
const static unsigned short pos_y = 50; const static unsigned int pos_y = 50;
enum corners { TOP_LEFT, TOP_RIGHT, BOTTOM_LEFT, BOTTOM_RIGHT }; enum corners { TOP_LEFT, TOP_RIGHT, BOTTOM_LEFT, BOTTOM_RIGHT };
enum corners corner = TOP_RIGHT; enum corners corner = TOP_RIGHT;
const static unsigned short duration = 5; /* in seconds */ const static unsigned int duration = 5; /* in seconds */

View file

@ -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 short x = pos_x; unsigned int x = pos_x;
unsigned short y = pos_y; unsigned int y = pos_y;
unsigned short height = font->ascent - font->descent + padding * 2; unsigned int height = font->ascent - font->descent + padding * 2;
switch (corner) switch (corner)
{ {