diff options
| author | Paul Eggert | 2011-06-21 23:16:16 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-06-21 23:16:16 -0700 |
| commit | 0766b489e1b34964bb43db221fe967d54ac5ec5e (patch) | |
| tree | 1de7cf403512dcf52d8d14dd3f05cc8065b8ad4a /src/xterm.c | |
| parent | 21514da7b21e248fa5046ab27834fa431a34204c (diff) | |
| download | emacs-0766b489e1b34964bb43db221fe967d54ac5ec5e.tar.gz emacs-0766b489e1b34964bb43db221fe967d54ac5ec5e.zip | |
* dispextern.h (struct face.stipple):
* image.c (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
(x_bitmap_mask, x_allocate_bitmap_record)
(x_create_bitmap_from_data, x_create_bitmap_from_file)
(x_destroy_bitmap, x_destroy_all_bitmaps, x_create_bitmap_mask)
(x_create_bitmap_from_xpm_data):
* nsterm.h (struct ns_display_info.bitmaps_size, .bitmaps_last):
* w32term.h (struct w32_display_info.icon_bitmap_id, .bitmaps_size)
(.bitmaps_last):
* xfaces.c (load_pixmap):
* xterm.c (x_bitmap_icon, x_wm_set_icon_pixmap):
* xterm.h (struct x_display_info.icon_bitmap_id, .bitmaps_size)
(.bitmaps_last, struct x_output.icon_bitmap):
Use ptrdiff_t, not int, for bitmap indexes.
(x_allocate_bitmap_record): Check for size overflow.
* dispextern.h, lisp.h: Adjust to API changes elsewhere.
Diffstat (limited to 'src/xterm.c')
| -rw-r--r-- | src/xterm.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/xterm.c b/src/xterm.c index c1134521c71..32fbab55008 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -356,7 +356,7 @@ static int x_dispatch_event (XEvent *, Display *); | |||
| 356 | interference with debugging failing X calls. */ | 356 | interference with debugging failing X calls. */ |
| 357 | static void x_connection_closed (Display *, const char *); | 357 | static void x_connection_closed (Display *, const char *); |
| 358 | static void x_wm_set_window_state (struct frame *, int); | 358 | static void x_wm_set_window_state (struct frame *, int); |
| 359 | static void x_wm_set_icon_pixmap (struct frame *, int); | 359 | static void x_wm_set_icon_pixmap (struct frame *, ptrdiff_t); |
| 360 | static void x_initialize (void); | 360 | static void x_initialize (void); |
| 361 | 361 | ||
| 362 | 362 | ||
| @@ -7427,7 +7427,7 @@ x_draw_window_cursor (struct window *w, struct glyph_row *glyph_row, int x, int | |||
| 7427 | int | 7427 | int |
| 7428 | x_bitmap_icon (struct frame *f, Lisp_Object file) | 7428 | x_bitmap_icon (struct frame *f, Lisp_Object file) |
| 7429 | { | 7429 | { |
| 7430 | int bitmap_id; | 7430 | ptrdiff_t bitmap_id; |
| 7431 | 7431 | ||
| 7432 | if (FRAME_X_WINDOW (f) == 0) | 7432 | if (FRAME_X_WINDOW (f) == 0) |
| 7433 | return 1; | 7433 | return 1; |
| @@ -7453,7 +7453,7 @@ x_bitmap_icon (struct frame *f, Lisp_Object file) | |||
| 7453 | /* Create the GNU bitmap and mask if necessary. */ | 7453 | /* Create the GNU bitmap and mask if necessary. */ |
| 7454 | if (FRAME_X_DISPLAY_INFO (f)->icon_bitmap_id < 0) | 7454 | if (FRAME_X_DISPLAY_INFO (f)->icon_bitmap_id < 0) |
| 7455 | { | 7455 | { |
| 7456 | int rc = -1; | 7456 | ptrdiff_t rc = -1; |
| 7457 | 7457 | ||
| 7458 | #ifdef USE_GTK | 7458 | #ifdef USE_GTK |
| 7459 | 7459 | ||
| @@ -9601,7 +9601,7 @@ x_wm_set_window_state (struct frame *f, int state) | |||
| 9601 | } | 9601 | } |
| 9602 | 9602 | ||
| 9603 | static void | 9603 | static void |
| 9604 | x_wm_set_icon_pixmap (struct frame *f, int pixmap_id) | 9604 | x_wm_set_icon_pixmap (struct frame *f, ptrdiff_t pixmap_id) |
| 9605 | { | 9605 | { |
| 9606 | Pixmap icon_pixmap, icon_mask; | 9606 | Pixmap icon_pixmap, icon_mask; |
| 9607 | 9607 | ||