changeset 53934:de8ab2bcee32

(w32_define_fringe_bitmap): Bitmaps are now 16 bits wide, so it is no longer necessary to expand them here.
author Kim F. Storm <storm@cua.dk>
date Fri, 13 Feb 2004 23:28:00 +0000
parents 869ca316cdda
children 60bbfcb6328e
files src/w32term.c
diffstat 1 files changed, 2 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/src/w32term.c	Fri Feb 13 23:27:38 2004 +0000
+++ b/src/w32term.c	Fri Feb 13 23:28:00 2004 +0000
@@ -762,17 +762,10 @@
 static void
 w32_define_fringe_bitmap (which, bits, h, wd)
      int which;
-     unsigned char *bits;
+     unsigned short *bits;
      int h, wd;
 {
-  unsigned short *w32bits
-    = (unsigned short *)alloca (h * sizeof (unsigned short));
-  unsigned short *wb = w32bits;
-  int j;
-
-  for (j = 0; j < h; j++)
-    *wb++ = (unsigned short)*bits++;
-  fringe_bmp[which] = CreateBitmap (wd, h, 1, 1, w32bits);
+  fringe_bmp[which] = CreateBitmap (wd, h, 1, 1, bits);
 }
 
 static void