]> code.delx.au - gnu-emacs/commitdiff
(w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
authorKim F. Storm <storm@cua.dk>
Fri, 13 Feb 2004 23:28:00 +0000 (23:28 +0000)
committerKim F. Storm <storm@cua.dk>
Fri, 13 Feb 2004 23:28:00 +0000 (23:28 +0000)
so it is no longer necessary to expand them here.

src/w32term.c

index 4d1006e9c192d3b7c3c1fa3513619c0650bff3dc..7fa3ca0fece507c3ef6dba4a55c38d4ad676568e 100644 (file)
@@ -762,17 +762,10 @@ w32_draw_fringe_bitmap (w, row, p)
 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