diff options
| author | Kim F. Storm | 2004-02-13 23:28:00 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2004-02-13 23:28:00 +0000 |
| commit | 03cce111cfce0b330c95a5216dd36fa21768b9bf (patch) | |
| tree | 3ea2dcf5c9bb394dc22fb47652cc0b46dea35129 | |
| parent | 82b05d81af91a4452fc6e1a0658e8451c88ea999 (diff) | |
| download | emacs-03cce111cfce0b330c95a5216dd36fa21768b9bf.tar.gz emacs-03cce111cfce0b330c95a5216dd36fa21768b9bf.zip | |
(w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
so it is no longer necessary to expand them here.
| -rw-r--r-- | src/w32term.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/w32term.c b/src/w32term.c index 4d1006e9c19..7fa3ca0fece 100644 --- a/src/w32term.c +++ b/src/w32term.c | |||
| @@ -762,17 +762,10 @@ w32_draw_fringe_bitmap (w, row, p) | |||
| 762 | static void | 762 | static void |
| 763 | w32_define_fringe_bitmap (which, bits, h, wd) | 763 | w32_define_fringe_bitmap (which, bits, h, wd) |
| 764 | int which; | 764 | int which; |
| 765 | unsigned char *bits; | 765 | unsigned short *bits; |
| 766 | int h, wd; | 766 | int h, wd; |
| 767 | { | 767 | { |
| 768 | unsigned short *w32bits | 768 | fringe_bmp[which] = CreateBitmap (wd, h, 1, 1, bits); |
| 769 | = (unsigned short *)alloca (h * sizeof (unsigned short)); | ||
| 770 | unsigned short *wb = w32bits; | ||
| 771 | int j; | ||
| 772 | |||
| 773 | for (j = 0; j < h; j++) | ||
| 774 | *wb++ = (unsigned short)*bits++; | ||
| 775 | fringe_bmp[which] = CreateBitmap (wd, h, 1, 1, w32bits); | ||
| 776 | } | 769 | } |
| 777 | 770 | ||
| 778 | static void | 771 | static void |