aboutsummaryrefslogtreecommitdiffstats
path: root/src/nsimage.m
diff options
context:
space:
mode:
authorAdrian Robert <[email protected]>2009-10-12 00:26:41 +0000
committerAdrian Robert <[email protected]>2009-10-12 00:26:41 +0000
commit31e88bd8e73b3c99c389fee295aba67e4bf12033 (patch)
treeb1be9cd43c0342b8f9c7e0dd84f733b7373f8405 /src/nsimage.m
parent09b1339dc1fd432bb696fe6fb221f6937d94c9b5 (diff)
(EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat where appropriate.
Diffstat (limited to 'src/nsimage.m')
-rw-r--r--src/nsimage.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nsimage.m b/src/nsimage.m
index 9ef7ad37a0..87499b0a23 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)