Commit 479f4325 by Graydon Hoare Committed by Graydon Hoare

Color.java (getAlpha): Prevent sign-extended alpha values.

2003-08-12  Graydon Hoare  <graydon@redhat.com>

	* java/awt/Color.java (getAlpha):
	Prevent sign-extended alpha values.

From-SVN: r70401
parent 4717fcc7
2003-08-12 Graydon Hoare <graydon@redhat.com>
* java/awt/Color.java (getAlpha):
Prevent sign-extended alpha values.
2003-08-12 Tom Tromey <tromey@redhat.com> 2003-08-12 Tom Tromey <tromey@redhat.com>
* gij.cc (main): Handle -? and -X. * gij.cc (main): Handle -? and -X.
......
...@@ -496,7 +496,7 @@ public class Color implements Paint, Serializable ...@@ -496,7 +496,7 @@ public class Color implements Paint, Serializable
public int getAlpha() public int getAlpha()
{ {
// Do not inline getRGB() to value, because of SystemColor. // Do not inline getRGB() to value, because of SystemColor.
return (getRGB() & ALPHA_MASK) >> 24; return (getRGB() & ALPHA_MASK) >>> 24;
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment