Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Plisson <damien.plisson@yahoo.fr>2009-10-30 23:20:48 +0300
committerDamien Plisson <damien.plisson@yahoo.fr>2009-10-30 23:20:48 +0300
commit93173a6dd4eaf1955516e35335009494a92f300b (patch)
tree8179f8ad07c6bcf1dc276d3e89058f829dd7c742 /source/blender/imbuf/intern/imbuf_cocoa.m
parentf03257cc1f68e6448b8c45e9053d894d275f44cb (diff)
Mac / COCOA :
- fix 10.4 compile issues - fix some scons issues & add WITH_BF_COLLADA = False in scons darwin_config.py to allow build waiting for complete Collada Mac implementation
Diffstat (limited to 'source/blender/imbuf/intern/imbuf_cocoa.m')
-rw-r--r--source/blender/imbuf/intern/imbuf_cocoa.m7
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/imbuf/intern/imbuf_cocoa.m b/source/blender/imbuf/intern/imbuf_cocoa.m
index e5bebf68f66..5ede7ee3e00 100644
--- a/source/blender/imbuf/intern/imbuf_cocoa.m
+++ b/source/blender/imbuf/intern/imbuf_cocoa.m
@@ -29,6 +29,7 @@
*
*/
+#include <stdint.h>
#include <string.h>
#import <Cocoa/Cocoa.h>
@@ -65,7 +66,7 @@
struct ImBuf *imb_cocoaLoadImage(unsigned char *mem, int size, int flags)
{
struct ImBuf *ibuf = NULL;
- uint32 width, height;
+ uint32_t width, height;
uchar *rasterRGB = NULL;
uchar *rasterRGBA = NULL;
uchar *toIBuf = NULL;
@@ -204,7 +205,7 @@ struct ImBuf *imb_cocoaLoadImage(unsigned char *mem, int size, int flags)
short imb_cocoaSaveImage(struct ImBuf *ibuf, char *name, int flags)
{
- uint16 samplesperpixel, bitspersample;
+ uint16_t samplesperpixel, bitspersample;
unsigned char *from = NULL, *to = NULL;
unsigned short *to16 = NULL;
float *fromf = NULL;
@@ -224,7 +225,7 @@ short imb_cocoaSaveImage(struct ImBuf *ibuf, char *name, int flags)
/* check for a valid number of bytes per pixel. Like the PNG writer,
* the TIFF writer supports 1, 3 or 4 bytes per pixel, corresponding
* to gray, RGB, RGBA respectively. */
- samplesperpixel = (uint16)((ibuf->depth + 7) >> 3);
+ samplesperpixel = (uint16_t)((ibuf->depth + 7) >> 3);
switch (samplesperpixel) {
case 4: /*RGBA type*/
hasAlpha = YES;