From ef85ed92b7e08163df5c1c75471803bdf2a0f270 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Sun, 21 Sep 2008 10:21:02 +0200 Subject: [PATCH] use more precise types Signed-off-by: Julien Danjou --- draw.h | 6 +++--- structs.h | 2 +- swindow.c | 6 +++--- swindow.h | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/draw.h b/draw.h index 1bae996e..b2ed3666 100644 --- a/draw.h +++ b/draw.h @@ -90,10 +90,10 @@ typedef struct { xcb_pixmap_t pixmap; xcb_visualtype_t *visual; - int width; - int height; + uint16_t width; + uint16_t height; int phys_screen; - int depth; + uint8_t depth; cairo_t *cr; cairo_surface_t *surface; PangoLayout *layout; diff --git a/structs.h b/structs.h index 334317f1..65f2856f 100644 --- a/structs.h +++ b/structs.h @@ -87,7 +87,7 @@ typedef struct /** Wibox name */ char *name; /** Box width and height */ - int width, height; + uint16_t width, height; /** Box position */ position_t position; /** Alignment */ diff --git a/swindow.c b/swindow.c index 9d632ace..75c8184c 100644 --- a/swindow.c +++ b/swindow.c @@ -45,9 +45,9 @@ extern awesome_t globalconf; void simplewindow_init(simple_window_t *sw, int phys_screen, - int x, int y, - unsigned int w, unsigned int h, - unsigned int border_width, + int16_t x, int16_t y, + uint16_t w, uint16_t h, + uint16_t border_width, position_t position, const xcolor_t *fg, const xcolor_t *bg) { diff --git a/swindow.h b/swindow.h index f17b9fb9..74daa8b0 100644 --- a/swindow.h +++ b/swindow.h @@ -40,7 +40,7 @@ typedef struct simple_window_t struct { /** The window border width */ - int width; + uint16_t width; /** The window border color */ xcolor_t color; } border; @@ -51,7 +51,7 @@ typedef struct simple_window_t } simple_window_t; void simplewindow_init(simple_window_t *s, - int, int, int, unsigned int, unsigned int, unsigned int, + int, int16_t, int16_t, uint16_t, uint16_t, uint16_t, position_t, const xcolor_t *, const xcolor_t *); void simplewindow_wipe(simple_window_t *);