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_pixmap_t pixmap;
xcb_visualtype_t *visual; xcb_visualtype_t *visual;
int width; uint16_t width;
int height; uint16_t height;
int phys_screen; int phys_screen;
int depth; uint8_t depth;
cairo_t *cr; cairo_t *cr;
cairo_surface_t *surface; cairo_surface_t *surface;
PangoLayout *layout; PangoLayout *layout;

View File

@ -87,7 +87,7 @@ typedef struct
/** Wibox name */ /** Wibox name */
char *name; char *name;
/** Box width and height */ /** Box width and height */
int width, height; uint16_t width, height;
/** Box position */ /** Box position */
position_t position; position_t position;
/** Alignment */ /** Alignment */

View File

@ -45,9 +45,9 @@ extern awesome_t globalconf;
void void
simplewindow_init(simple_window_t *sw, simplewindow_init(simple_window_t *sw,
int phys_screen, int phys_screen,
int x, int y, int16_t x, int16_t y,
unsigned int w, unsigned int h, uint16_t w, uint16_t h,
unsigned int border_width, uint16_t border_width,
position_t position, position_t position,
const xcolor_t *fg, const xcolor_t *bg) const xcolor_t *fg, const xcolor_t *bg)
{ {

View File

@ -40,7 +40,7 @@ typedef struct simple_window_t
struct struct
{ {
/** The window border width */ /** The window border width */
int width; uint16_t width;
/** The window border color */ /** The window border color */
xcolor_t color; xcolor_t color;
} border; } border;
@ -51,7 +51,7 @@ typedef struct simple_window_t
} simple_window_t; } simple_window_t;
void simplewindow_init(simple_window_t *s, 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 *); position_t, const xcolor_t *, const xcolor_t *);
void simplewindow_wipe(simple_window_t *); void simplewindow_wipe(simple_window_t *);