Commit 9045c438 authored by YAMAMOTO Mitsuharu's avatar YAMAMOTO Mitsuharu

Use int instead of unsigned int for width and height args.

* xterm.c (x_cr_draw_image, x_fill_rectangle, x_draw_rectangle)
(x_fill_trapezoid_for_relief): Use int instead of unsigned int for
width and height args.
parent a7930e12
......@@ -18,6 +18,9 @@
(x_set_clip_rectangles, x_reset_clip_rectangles, x_fill_rectangle)
(x_draw_rectangle, x_clear_window, x_fill_trapezoid_for_relief)
(x_clear_area): Modernize k&r declarations.
(x_cr_draw_image, x_fill_rectangle, x_draw_rectangle)
(x_fill_trapezoid_for_relief): Use int instead of unsigned int for
width and height args.
2015-02-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
......
......@@ -329,12 +329,10 @@ record_event (char *locus, int type)
static void x_prepare_for_xlibdraw (struct frame *);
static void x_set_clip_rectangles (struct frame *, GC, XRectangle *, int);
static void x_reset_clip_rectangles (struct frame *, GC);
static void x_fill_rectangle (struct frame *, GC, int, int,
unsigned int, unsigned int);
static void x_draw_rectangle (struct frame *, GC, int, int,
unsigned int, unsigned int);
static void x_fill_rectangle (struct frame *, GC, int, int, int, int);
static void x_draw_rectangle (struct frame *, GC, int, int, int, int);
static void x_fill_trapezoid_for_relief (struct frame *, GC, int, int,
unsigned int, unsigned int, int);
int, int, int);
static void x_clear_window (struct frame *);
#ifdef USE_CAIRO
......@@ -529,16 +527,9 @@ x_cr_destroy_fringe_bitmap (int which)
}
static void
x_cr_draw_image (struct frame *f,
GC gc,
cairo_pattern_t *image,
int src_x,
int src_y,
unsigned int width,
unsigned int height,
int dest_x,
int dest_y,
bool overlay_p)
x_cr_draw_image (struct frame *f, GC gc, cairo_pattern_t *image,
int src_x, int src_y, int width, int height,
int dest_x, int dest_y, bool overlay_p)
{
cairo_t *cr;
cairo_matrix_t matrix;
......@@ -767,8 +758,7 @@ x_reset_clip_rectangles (struct frame *f, GC gc)
}
static void
x_fill_rectangle (struct frame *f, GC gc, int x, int y,
unsigned int width, unsigned int height)
x_fill_rectangle (struct frame *f, GC gc, int x, int y, int width, int height)
{
#ifdef USE_CAIRO
cairo_t *cr;
......@@ -785,8 +775,7 @@ x_fill_rectangle (struct frame *f, GC gc, int x, int y,
}
static void
x_draw_rectangle (struct frame *f, GC gc, int x, int y,
unsigned int width, unsigned int height)
x_draw_rectangle (struct frame *f, GC gc, int x, int y, int width, int height)
{
#ifdef USE_CAIRO
cairo_t *cr;
......@@ -821,7 +810,7 @@ x_clear_window (struct frame *f)
#ifdef USE_CAIRO
static void
x_fill_trapezoid_for_relief (struct frame *f, GC gc, int x, int y,
unsigned int width, unsigned int height, int top_p)
int width, int height, int top_p)
{
cairo_t *cr;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment