changeset 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 cbe7f8a45067
children ec0d4464a897
files src/nsimage.m
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
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)