Mercurial > dwindows
comparison mac/dw.m @ 920:f47d5fa72f84
Fixed a clang warning.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Fri, 22 Apr 2011 05:01:38 +0000 |
parents | 2ab67f71b50f |
children | 4c9bef883b14 |
comparison
equal
deleted
inserted
replaced
919:2ab67f71b50f | 920:f47d5fa72f84 |
---|---|
5868 if(!(pixmap = calloc(1,sizeof(struct _hpixmap)))) | 5868 if(!(pixmap = calloc(1,sizeof(struct _hpixmap)))) |
5869 return NULL; | 5869 return NULL; |
5870 pixmap->width = width; | 5870 pixmap->width = width; |
5871 pixmap->height = height; | 5871 pixmap->height = height; |
5872 pixmap->handle = handle; | 5872 pixmap->handle = handle; |
5873 id image = pixmap->image = [[NSBitmapImageRep alloc] | 5873 pixmap->image = [[NSBitmapImageRep alloc] |
5874 initWithBitmapDataPlanes:NULL | 5874 initWithBitmapDataPlanes:NULL |
5875 pixelsWide:width | 5875 pixelsWide:width |
5876 pixelsHigh:height | 5876 pixelsHigh:height |
5877 bitsPerSample:8 | 5877 bitsPerSample:8 |
5878 samplesPerPixel:4 | 5878 samplesPerPixel:4 |