comparison src/w32term.c @ 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 ff3a4c680347
children 7add5c20b6f7
comparison
equal deleted inserted replaced
53933:869ca316cdda 53934:de8ab2bcee32
760 } 760 }
761 761
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
779 w32_destroy_fringe_bitmap (which) 772 w32_destroy_fringe_bitmap (which)
780 int which; 773 int which;