This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Patch: FYI: ColorModel fixlet


I'm checking this in.
This fixes a buglet pointed out on the main list.

Tom

Index: ChangeLog
from  Tom Tromey  <tromey@redhat.com>

	* java/awt/image/ColorModel.java (getAlpha(Object)): Call
	getAlpha, not getBlue.

Index: java/awt/image/ColorModel.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/awt/image/ColorModel.java,v
retrieving revision 1.6
diff -u -r1.6 ColorModel.java
--- java/awt/image/ColorModel.java 2002/01/22 22:40:10 1.6
+++ java/awt/image/ColorModel.java 2002/01/25 05:43:27
@@ -293,7 +293,7 @@
    * @see #getRed(Object)
    */
   public int getAlpha(Object inData) {
-    return getBlue(getPixelFromArray(inData));
+    return getAlpha(getPixelFromArray(inData));
   }
 
   /**


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]