diff options
author | Adrian Robert <Adrian.B.Robert@gmail.com> | 2009-10-12 00:26:41 +0000 |
---|---|---|
committer | Adrian Robert <Adrian.B.Robert@gmail.com> | 2009-10-12 00:26:41 +0000 |
commit | 31e88bd8e73b3c99c389fee295aba67e4bf12033 (patch) | |
tree | b1be9cd43c0342b8f9c7e0dd84f733b7373f8405 /src/nsimage.m | |
parent | 09b1339dc1fd432bb696fe6fb221f6937d94c9b5 (diff) | |
download | emacs-31e88bd8e73b3c99c389fee295aba67e4bf12033.tar.gz |
(EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat where appropriate.
Diffstat (limited to 'src/nsimage.m')
-rw-r--r-- | src/nsimage.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nsimage.m b/src/nsimage.m index 9ef7ad37a0f..87499b0a232 100644 --- a/src/nsimage.m +++ b/src/nsimage.m @@ -329,7 +329,7 @@ static EmacsImage *ImageList = nil; NSSize s = [self size]; int len = (int) s.width * s.height; unsigned char *planes[5]; - float r, g, b, a; + CGFloat r, g, b, a; NSColor *rgbColor; if (bmRep == nil || color == nil) @@ -431,7 +431,7 @@ static EmacsImage *ImageList = nil; else if (onTiger) { NSColor *color = [bmRep colorAtX: x y: y]; - float r, g, b, a; + CGFloat r, g, b, a; [color getRed: &r green: &g blue: &b alpha: &a]; return ((int)(a * 255.0) << 24) | ((int)(r * 255.0) << 16) | ((int)(g * 255.0) << 8) |