use more precise types

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-09-21 10:21:02 +02:00
parent 34fe130307
commit ef85ed92b7
4 changed files with 9 additions and 9 deletions

6
draw.h
View file

@ -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;

View file

@ -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 */

View file

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

View file

@ -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 *);