Mercurial > hg > xemacs-beta
comparison src/glyphs-msw.c @ 647:b39c14581166
[xemacs-hg @ 2001-08-13 04:45:47 by ben]
removal of unsigned, size_t, etc.
author | ben |
---|---|
date | Mon, 13 Aug 2001 04:46:48 +0000 |
parents | 38db05db9cb5 |
children | fdefd0186b75 |
comparison
equal
deleted
inserted
replaced
646:00c54252fe4f | 647:b39c14581166 |
---|---|
851 XpmFreeXpmImage (&xpmimage); | 851 XpmFreeXpmImage (&xpmimage); |
852 XpmFreeXpmInfo (&xpminfo); | 852 XpmFreeXpmInfo (&xpminfo); |
853 return 0; | 853 return 0; |
854 } | 854 } |
855 | 855 |
856 for (i=0; i<xpmimage.ncolors; i++) | 856 for (i=0; i<(int)xpmimage.ncolors; i++) |
857 { | 857 { |
858 /* goto alert!!!! */ | 858 /* goto alert!!!! */ |
859 /* pick up symbolic colors in preference */ | 859 /* pick up symbolic colors in preference */ |
860 if (xpmimage.colorTable[i].symbolic) | 860 if (xpmimage.colorTable[i].symbolic) |
861 { | 861 { |
1215 Lisp_Object instantiator, | 1215 Lisp_Object instantiator, |
1216 Lisp_Object pointer_fg, Lisp_Object pointer_bg, | 1216 Lisp_Object pointer_fg, Lisp_Object pointer_bg, |
1217 int dest_mask, Lisp_Object domain) | 1217 int dest_mask, Lisp_Object domain) |
1218 { | 1218 { |
1219 Lisp_Image_Instance *ii = XIMAGE_INSTANCE (image_instance); | 1219 Lisp_Image_Instance *ii = XIMAGE_INSTANCE (image_instance); |
1220 unsigned int type = 0; | 1220 int type = 0; |
1221 HANDLE himage = NULL; | 1221 HANDLE himage = NULL; |
1222 LPCTSTR resid=0; | 1222 LPCTSTR resid=0; |
1223 HINSTANCE hinst = NULL; | 1223 HINSTANCE hinst = NULL; |
1224 ICONINFO iconinfo; | 1224 ICONINFO iconinfo; |
1225 enum image_instance_type iitype; | 1225 enum image_instance_type iitype; |
1376 padded to a multiple of 16. Scan lines are stored in increasing | 1376 padded to a multiple of 16. Scan lines are stored in increasing |
1377 byte order from left to right, big-endian within a byte. 0 = | 1377 byte order from left to right, big-endian within a byte. 0 = |
1378 black, 1 = white. */ | 1378 black, 1 = white. */ |
1379 static HBITMAP | 1379 static HBITMAP |
1380 xbm_create_bitmap_from_data (HDC hdc, const UChar_Binary *data, | 1380 xbm_create_bitmap_from_data (HDC hdc, const UChar_Binary *data, |
1381 unsigned int width, unsigned int height, | 1381 int width, int height, |
1382 int mask, COLORREF fg, COLORREF bg) | 1382 int mask, COLORREF fg, COLORREF bg) |
1383 { | 1383 { |
1384 int old_width = (width + 7)/8; | 1384 int old_width = (width + 7)/8; |
1385 int new_width = BPLINE (2*((width + 15)/16)); | 1385 int new_width = BPLINE (2*((width + 15)/16)); |
1386 const UChar_Binary *offset; | 1386 const UChar_Binary *offset; |
2149 } | 2149 } |
2150 | 2150 |
2151 return 1; | 2151 return 1; |
2152 } | 2152 } |
2153 | 2153 |
2154 static unsigned long | 2154 static Hash_Code |
2155 mswindows_image_instance_hash (Lisp_Image_Instance *p, int depth) | 2155 mswindows_image_instance_hash (Lisp_Image_Instance *p, int depth) |
2156 { | 2156 { |
2157 switch (IMAGE_INSTANCE_TYPE (p)) | 2157 switch (IMAGE_INSTANCE_TYPE (p)) |
2158 { | 2158 { |
2159 case IMAGE_MONO_PIXMAP: | 2159 case IMAGE_MONO_PIXMAP: |
2160 case IMAGE_COLOR_PIXMAP: | 2160 case IMAGE_COLOR_PIXMAP: |
2161 case IMAGE_POINTER: | 2161 case IMAGE_POINTER: |
2162 return (unsigned long) IMAGE_INSTANCE_MSWINDOWS_BITMAP (p); | 2162 return (Hash_Code) IMAGE_INSTANCE_MSWINDOWS_BITMAP (p); |
2163 | 2163 |
2164 default: | 2164 default: |
2165 return 0; | 2165 return 0; |
2166 } | 2166 } |
2167 } | 2167 } |