]> git.eshelyaron.com Git - emacs.git/commitdiff
Use int instead of unsigned int for width and height args.
authorYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Mon, 16 Feb 2015 02:07:39 +0000 (11:07 +0900)
committerYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Mon, 16 Feb 2015 02:07:39 +0000 (11:07 +0900)
* 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.

src/ChangeLog
src/xterm.c

index 76ca07d2dda50bf747befbb0113cecae3ff7f041..0af3f267e8b2cf30f12961dee79adcc5f0069da4 100644 (file)
@@ -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>
 
index 6cc96587ab728253c6f2f46f5a8a99f0c50af391..1844fff1a93c621af696c1a42d310aa5ca45a1ab 100644 (file)
@@ -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;