Mercurial > emacs
diff src/nsimage.m @ 105558:d5a3427bfd72
(EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat where appropriate.
| author | Adrian Robert <Adrian.B.Robert@gmail.com> |
|---|---|
| date | Mon, 12 Oct 2009 00:26:41 +0000 |
| parents | b5a34573cf82 |
| children | bb413968898a |
line wrap: on
line diff
--- a/src/nsimage.m Mon Oct 12 00:26:38 2009 +0000 +++ b/src/nsimage.m Mon Oct 12 00:26:41 2009 +0000 @@ -329,7 +329,7 @@ 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 @@ 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)
