aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKim F. Storm2004-02-13 23:29:58 +0000
committerKim F. Storm2004-02-13 23:29:58 +0000
commit12fde2dcdfe56cd65b540f571073ba62931a250d (patch)
treef7eb7781476119cffb488231e52dc20893da7c34 /src
parent0881a0fd1488ffb9f916b24d9eecb5f95d758de0 (diff)
downloademacs-12fde2dcdfe56cd65b540f571073ba62931a250d.tar.gz
emacs-12fde2dcdfe56cd65b540f571073ba62931a250d.zip
(struct draw_fringe_bitmap_params): Change member
bits from char to short to facilitate wider bitmaps. (struct redisplay_interface): Fix prototype of define_fringe_bitmap member.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog27
-rw-r--r--src/dispextern.h4
2 files changed, 29 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 564e5a34160..d84d6f5d3a6 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,30 @@
12004-02-14 Kim F. Storm <storm@cua.dk>
2
3 * dispextern.h (struct draw_fringe_bitmap_params): Change member
4 bits from char to short to facilitate wider bitmaps.
5 (struct redisplay_interface): Fix prototype of define_fringe_bitmap
6 member.
7
8 * fringe.c (struct fringe_bitmap): Change member bits from char to
9 short to facilitate 16 bits wide bitmaps. Modify all standard
10 bitmaps accordingly.
11 (BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
12 (FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
13 (draw_fringe_bitmap): Ditto.
14 (init_fringe_bitmap) [MAC_OS]: Don't bitswap.
15 (init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
16 handle up to 16 bits wide bitmaps.
17 (Fdefine_fringe_bitmap): Doc fix. Handle wider bitmaps.
18
19 * macterm.c (mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
20 (x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
21 need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
22
23 * w32term.c (w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
24 so it is no longer necessary to expand them here.
25
26 * xterm.c (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
27
12004-02-12 Kim F. Storm <storm@cua.dk> 282004-02-12 Kim F. Storm <storm@cua.dk>
2 29
3 * window.c (Fwindow_fringes): Doc fix. 30 * window.c (Fwindow_fringes): Doc fix.
diff --git a/src/dispextern.h b/src/dispextern.h
index ec6750086ea..fc27c6e185e 100644
--- a/src/dispextern.h
+++ b/src/dispextern.h
@@ -1641,7 +1641,7 @@ extern int face_change_count;
1641struct draw_fringe_bitmap_params 1641struct draw_fringe_bitmap_params
1642{ 1642{
1643 int which; /* enum fringe_bitmap_type */ 1643 int which; /* enum fringe_bitmap_type */
1644 unsigned char *bits; 1644 unsigned short *bits;
1645 int wd, h, dh; 1645 int wd, h, dh;
1646 int x, y; 1646 int x, y;
1647 int bx, nx, by, ny; 1647 int bx, nx, by, ny;
@@ -2189,7 +2189,7 @@ struct redisplay_interface
2189 struct draw_fringe_bitmap_params *p)); 2189 struct draw_fringe_bitmap_params *p));
2190 2190
2191 /* Define and destroy fringe bitmap no. WHICH. */ 2191 /* Define and destroy fringe bitmap no. WHICH. */
2192 void (*define_fringe_bitmap) P_ ((int which, unsigned char *bits, 2192 void (*define_fringe_bitmap) P_ ((int which, unsigned short *bits,
2193 int h, int wd)); 2193 int h, int wd));
2194 void (*destroy_fringe_bitmap) P_ ((int which)); 2194 void (*destroy_fringe_bitmap) P_ ((int which));
2195 2195