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.h | |
| 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.h')
| -rw-r--r-- | src/xterm.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/xterm.h b/src/xterm.h index 47d7e533769..a4767361bb3 100644 --- a/src/xterm.h +++ b/src/xterm.h | |||
| @@ -158,7 +158,7 @@ struct x_display_info | |||
| 158 | 158 | ||
| 159 | /* Emacs bitmap-id of the default icon bitmap for this frame. | 159 | /* Emacs bitmap-id of the default icon bitmap for this frame. |
| 160 | Or -1 if none has been allocated yet. */ | 160 | Or -1 if none has been allocated yet. */ |
| 161 | int icon_bitmap_id; | 161 | ptrdiff_t icon_bitmap_id; |
| 162 | 162 | ||
| 163 | /* The root window of this screen. */ | 163 | /* The root window of this screen. */ |
| 164 | Window root_window; | 164 | Window root_window; |
| @@ -202,10 +202,10 @@ struct x_display_info | |||
| 202 | struct x_bitmap_record *bitmaps; | 202 | struct x_bitmap_record *bitmaps; |
| 203 | 203 | ||
| 204 | /* Allocated size of bitmaps field. */ | 204 | /* Allocated size of bitmaps field. */ |
| 205 | int bitmaps_size; | 205 | ptrdiff_t bitmaps_size; |
| 206 | 206 | ||
| 207 | /* Last used bitmap index. */ | 207 | /* Last used bitmap index. */ |
| 208 | int bitmaps_last; | 208 | ptrdiff_t bitmaps_last; |
| 209 | 209 | ||
| 210 | /* Which modifier keys are on which modifier bits? | 210 | /* Which modifier keys are on which modifier bits? |
| 211 | 211 | ||
| @@ -490,7 +490,7 @@ struct x_output | |||
| 490 | 490 | ||
| 491 | /* If >=0, a bitmap index. The indicated bitmap is used for the | 491 | /* If >=0, a bitmap index. The indicated bitmap is used for the |
| 492 | icon. */ | 492 | icon. */ |
| 493 | int icon_bitmap; | 493 | ptrdiff_t icon_bitmap; |
| 494 | 494 | ||
| 495 | /* Default ASCII font of this frame. */ | 495 | /* Default ASCII font of this frame. */ |
| 496 | struct font *font; | 496 | struct font *font; |