From: <ls...@us...> - 2008-07-24 21:14:00
|
Revision: 4351 http://jnode.svn.sourceforge.net/jnode/?rev=4351&view=rev Author: lsantha Date: 2008-07-24 21:13:57 +0000 (Thu, 24 Jul 2008) Log Message: ----------- Fixed gradients in metal l&f ocean theme. Modified Paths: -------------- trunk/core/src/openjdk/sun/sun/swing/CachedPainter.java trunk/gui/src/awt/org/jnode/awt/JNodeGraphicsConfiguration.java Modified: trunk/core/src/openjdk/sun/sun/swing/CachedPainter.java =================================================================== --- trunk/core/src/openjdk/sun/sun/swing/CachedPainter.java 2008-07-24 20:34:32 UTC (rev 4350) +++ trunk/core/src/openjdk/sun/sun/swing/CachedPainter.java 2008-07-24 21:13:57 UTC (rev 4351) @@ -204,10 +204,13 @@ */ protected Image createImage(Component c, int w, int h, GraphicsConfiguration config, Object[] args) { + return new BufferedImage(w, h, BufferedImage.TYPE_INT_ARGB); +/* jnode todo we need volatile image support for this if (config == null) { return new BufferedImage(w, h, BufferedImage.TYPE_INT_RGB); } return config.createCompatibleVolatileImage(w, h); +*/ } /** Modified: trunk/gui/src/awt/org/jnode/awt/JNodeGraphicsConfiguration.java =================================================================== --- trunk/gui/src/awt/org/jnode/awt/JNodeGraphicsConfiguration.java 2008-07-24 20:34:32 UTC (rev 4350) +++ trunk/gui/src/awt/org/jnode/awt/JNodeGraphicsConfiguration.java 2008-07-24 21:13:57 UTC (rev 4351) @@ -89,8 +89,8 @@ * @see java.awt.GraphicsConfiguration#getColorModel(int) */ public ColorModel getColorModel(int transparency) { - // TODO Auto-generated method stub - return null; + // TODO review this, normally transparency should be respected + return colorModel; } /** This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |