diff options
Diffstat (limited to 'cocoa/PlatCocoa.mm')
| -rw-r--r-- | cocoa/PlatCocoa.mm | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/cocoa/PlatCocoa.mm b/cocoa/PlatCocoa.mm index a3d5ac17b..901ce4f7d 100644 --- a/cocoa/PlatCocoa.mm +++ b/cocoa/PlatCocoa.mm @@ -1793,7 +1793,7 @@ void ListBoxImpl::RegisterImage(int type, const char* xpm_data)  void ListBoxImpl::RegisterRGBAImage(int type, int width, int height, const unsigned char *pixelsImage) {  	CGImageRef imageRef = ImageCreateFromRGBA(width, height, pixelsImage, false); -	NSSize sz = {width, height}; +	NSSize sz = {static_cast<CGFloat>(width), static_cast<CGFloat>(height)};  	NSImage *img = [[[NSImage alloc] initWithSize: sz] autorelease];  	NSBitmapImageRep *bitmapRep = [[NSBitmapImageRep alloc] initWithCGImage: imageRef];  	[img addRepresentation: bitmapRep]; | 
