emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs/src nsimage.m


From: Adrian Robert
Subject: [Emacs-diffs] emacs/src nsimage.m
Date: Mon, 12 Oct 2009 00:26:42 +0000

CVSROOT:        /sources/emacs
Module name:    emacs
Changes by:     Adrian Robert <arobert> 09/10/12 00:26:41

Modified files:
        src            : nsimage.m 

Log message:
        (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat where 
appropriate.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/emacs/src/nsimage.m?cvsroot=emacs&r1=1.10&r2=1.11

Patches:
Index: nsimage.m
===================================================================
RCS file: /sources/emacs/emacs/src/nsimage.m,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -b -r1.10 -r1.11
--- nsimage.m   13 Apr 2009 18:45:15 -0000      1.10
+++ nsimage.m   12 Oct 2009 00:26:41 -0000      1.11
@@ -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)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]