213 |
{ |
{ |
214 |
UnlockPixels (GetGWorldPixMap (ximg)); |
UnlockPixels (GetGWorldPixMap (ximg)); |
215 |
} |
} |
216 |
#endif |
#endif /* MAC_OS */ |
217 |
|
|
218 |
|
|
219 |
/* Functions to access the contents of a bitmap, given an id. */ |
/* Functions to access the contents of a bitmap, given an id. */ |
1596 |
Lisp_Object spec; |
Lisp_Object spec; |
1597 |
{ |
{ |
1598 |
struct image_cache *c = FRAME_X_IMAGE_CACHE (f); |
struct image_cache *c = FRAME_X_IMAGE_CACHE (f); |
1599 |
|
#ifdef _MSC_VER |
1600 |
|
/* Work around a problem with MinGW builds of graphics libraries |
1601 |
|
not honoring calling conventions. */ |
1602 |
|
static |
1603 |
|
#endif |
1604 |
struct image *img; |
struct image *img; |
1605 |
int i; |
int i; |
1606 |
unsigned hash; |
unsigned hash; |
4243 |
} |
} |
4244 |
|
|
4245 |
#endif /* MAC_OS */ |
#endif /* MAC_OS */ |
4246 |
|
|
4247 |
|
|
4248 |
|
|
4249 |
/*********************************************************************** |
/*********************************************************************** |
5693 |
PNG_PTR is a pointer to the PNG control structure. Copy LENGTH |
PNG_PTR is a pointer to the PNG control structure. Copy LENGTH |
5694 |
bytes from the input to DATA. */ |
bytes from the input to DATA. */ |
5695 |
|
|
5696 |
|
#ifdef _MSC_VER |
5697 |
|
/* Work around a problem with MinGW builds of graphics libraries |
5698 |
|
not honoring calling conventions. */ |
5699 |
|
#pragma optimize("g", off) |
5700 |
|
#endif |
5701 |
|
|
5702 |
static void |
static void |
5703 |
png_read_from_memory (png_ptr, data, length) |
png_read_from_memory (png_ptr, data, length) |
5704 |
png_structp png_ptr; |
png_structp png_ptr; |
5715 |
tbr->index = tbr->index + length; |
tbr->index = tbr->index + length; |
5716 |
} |
} |
5717 |
|
|
5718 |
|
#ifdef _MSC_VER |
5719 |
|
/* Restore normal optimization, as specified on the command line. */ |
5720 |
|
#pragma optimize("", on) |
5721 |
|
#endif |
5722 |
|
|
5723 |
/* Load PNG image IMG for use on frame F. Value is non-zero if |
/* Load PNG image IMG for use on frame F. Value is non-zero if |
5724 |
successful. */ |
successful. */ |
5725 |
|
|