diff options
| author | YAMAMOTO Mitsuharu | 2015-02-16 11:07:39 +0900 |
|---|---|---|
| committer | YAMAMOTO Mitsuharu | 2015-02-16 11:07:39 +0900 |
| commit | 9045c438b7ef6945f591008d2188a1837743cc94 (patch) | |
| tree | b77ba22ec57a0d5668e09e271cedb72d3de24e9b /src | |
| parent | a7930e125e27d3591bcf20aa3cd954dc5993ad1b (diff) | |
| download | emacs-9045c438b7ef6945f591008d2188a1837743cc94.tar.gz emacs-9045c438b7ef6945f591008d2188a1837743cc94.zip | |
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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 3 | ||||
| -rw-r--r-- | src/xterm.c | 29 |
2 files changed, 12 insertions, 20 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 76ca07d2dda..0af3f267e8b 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -18,6 +18,9 @@ | |||
| 18 | (x_set_clip_rectangles, x_reset_clip_rectangles, x_fill_rectangle) | 18 | (x_set_clip_rectangles, x_reset_clip_rectangles, x_fill_rectangle) |
| 19 | (x_draw_rectangle, x_clear_window, x_fill_trapezoid_for_relief) | 19 | (x_draw_rectangle, x_clear_window, x_fill_trapezoid_for_relief) |
| 20 | (x_clear_area): Modernize k&r declarations. | 20 | (x_clear_area): Modernize k&r declarations. |
| 21 | (x_cr_draw_image, x_fill_rectangle, x_draw_rectangle) | ||
| 22 | (x_fill_trapezoid_for_relief): Use int instead of unsigned int for | ||
| 23 | width and height args. | ||
| 21 | 24 | ||
| 22 | 2015-02-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | 25 | 2015-02-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
| 23 | 26 | ||
diff --git a/src/xterm.c b/src/xterm.c index 6cc96587ab7..1844fff1a93 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -329,12 +329,10 @@ record_event (char *locus, int type) | |||
| 329 | static void x_prepare_for_xlibdraw (struct frame *); | 329 | static void x_prepare_for_xlibdraw (struct frame *); |
| 330 | static void x_set_clip_rectangles (struct frame *, GC, XRectangle *, int); | 330 | static void x_set_clip_rectangles (struct frame *, GC, XRectangle *, int); |
| 331 | static void x_reset_clip_rectangles (struct frame *, GC); | 331 | static void x_reset_clip_rectangles (struct frame *, GC); |
| 332 | static void x_fill_rectangle (struct frame *, GC, int, int, | 332 | static void x_fill_rectangle (struct frame *, GC, int, int, int, int); |
| 333 | unsigned int, unsigned int); | 333 | static void x_draw_rectangle (struct frame *, GC, int, int, int, int); |
| 334 | static void x_draw_rectangle (struct frame *, GC, int, int, | ||
| 335 | unsigned int, unsigned int); | ||
| 336 | static void x_fill_trapezoid_for_relief (struct frame *, GC, int, int, | 334 | static void x_fill_trapezoid_for_relief (struct frame *, GC, int, int, |
| 337 | unsigned int, unsigned int, int); | 335 | int, int, int); |
| 338 | static void x_clear_window (struct frame *); | 336 | static void x_clear_window (struct frame *); |
| 339 | 337 | ||
| 340 | #ifdef USE_CAIRO | 338 | #ifdef USE_CAIRO |
| @@ -529,16 +527,9 @@ x_cr_destroy_fringe_bitmap (int which) | |||
| 529 | } | 527 | } |
| 530 | 528 | ||
| 531 | static void | 529 | static void |
| 532 | x_cr_draw_image (struct frame *f, | 530 | x_cr_draw_image (struct frame *f, GC gc, cairo_pattern_t *image, |
| 533 | GC gc, | 531 | int src_x, int src_y, int width, int height, |
| 534 | cairo_pattern_t *image, | 532 | int dest_x, int dest_y, bool overlay_p) |
| 535 | int src_x, | ||
| 536 | int src_y, | ||
| 537 | unsigned int width, | ||
| 538 | unsigned int height, | ||
| 539 | int dest_x, | ||
| 540 | int dest_y, | ||
| 541 | bool overlay_p) | ||
| 542 | { | 533 | { |
| 543 | cairo_t *cr; | 534 | cairo_t *cr; |
| 544 | cairo_matrix_t matrix; | 535 | cairo_matrix_t matrix; |
| @@ -767,8 +758,7 @@ x_reset_clip_rectangles (struct frame *f, GC gc) | |||
| 767 | } | 758 | } |
| 768 | 759 | ||
| 769 | static void | 760 | static void |
| 770 | x_fill_rectangle (struct frame *f, GC gc, int x, int y, | 761 | x_fill_rectangle (struct frame *f, GC gc, int x, int y, int width, int height) |
| 771 | unsigned int width, unsigned int height) | ||
| 772 | { | 762 | { |
| 773 | #ifdef USE_CAIRO | 763 | #ifdef USE_CAIRO |
| 774 | cairo_t *cr; | 764 | cairo_t *cr; |
| @@ -785,8 +775,7 @@ x_fill_rectangle (struct frame *f, GC gc, int x, int y, | |||
| 785 | } | 775 | } |
| 786 | 776 | ||
| 787 | static void | 777 | static void |
| 788 | x_draw_rectangle (struct frame *f, GC gc, int x, int y, | 778 | x_draw_rectangle (struct frame *f, GC gc, int x, int y, int width, int height) |
| 789 | unsigned int width, unsigned int height) | ||
| 790 | { | 779 | { |
| 791 | #ifdef USE_CAIRO | 780 | #ifdef USE_CAIRO |
| 792 | cairo_t *cr; | 781 | cairo_t *cr; |
| @@ -821,7 +810,7 @@ x_clear_window (struct frame *f) | |||
| 821 | #ifdef USE_CAIRO | 810 | #ifdef USE_CAIRO |
| 822 | static void | 811 | static void |
| 823 | x_fill_trapezoid_for_relief (struct frame *f, GC gc, int x, int y, | 812 | x_fill_trapezoid_for_relief (struct frame *f, GC gc, int x, int y, |
| 824 | unsigned int width, unsigned int height, int top_p) | 813 | int width, int height, int top_p) |
| 825 | { | 814 | { |
| 826 | cairo_t *cr; | 815 | cairo_t *cr; |
| 827 | 816 | ||