deweese     01/10/10 07:45:19

  Modified:    sources/org/apache/batik/ext/awt/image/rendered
                        DiffuseLightingRed.java SpecularLightingRed.java
  Log:
  Now gives correct answers for lighting operations.
  
  Revision  Changes    Path
  1.7       +3 -3      
xml-batik/sources/org/apache/batik/ext/awt/image/rendered/DiffuseLightingRed.java
  
  Index: DiffuseLightingRed.java
  ===================================================================
  RCS file: 
/home/cvs/xml-batik/sources/org/apache/batik/ext/awt/image/rendered/DiffuseLightingRed.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- DiffuseLightingRed.java   2001/10/09 22:17:11     1.6
  +++ DiffuseLightingRed.java   2001/10/10 14:45:18     1.7
  @@ -24,7 +24,7 @@
   /**
    * 
    * @author <a href="mailto:[EMAIL PROTECTED]";>Vincent Hardy</a>
  - * @version $Id: DiffuseLightingRed.java,v 1.6 2001/10/09 22:17:11 deweese Exp $
  + * @version $Id: DiffuseLightingRed.java,v 1.7 2001/10/10 14:45:18 deweese Exp $
    */
   public class DiffuseLightingRed extends AbstractRed{
       /**
  @@ -75,9 +75,9 @@
   
           ColorModel cm;
           if (linear)
  -            cm = GraphicsUtil.Linear_sRGB_Unpre;
  +            cm = GraphicsUtil.Linear_sRGB_Pre;
           else
  -            cm = GraphicsUtil.sRGB_Unpre;
  +            cm = GraphicsUtil.sRGB_Pre;
   
           SampleModel sm = 
               cm.createCompatibleSampleModel(litRegion.width,
  
  
  
  1.9       +3 -3      
xml-batik/sources/org/apache/batik/ext/awt/image/rendered/SpecularLightingRed.java
  
  Index: SpecularLightingRed.java
  ===================================================================
  RCS file: 
/home/cvs/xml-batik/sources/org/apache/batik/ext/awt/image/rendered/SpecularLightingRed.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- SpecularLightingRed.java  2001/10/09 22:17:11     1.8
  +++ SpecularLightingRed.java  2001/10/10 14:45:18     1.9
  @@ -25,7 +25,7 @@
   /**
    * 
    * @author <a href="mailto:[EMAIL PROTECTED]";>Vincent Hardy</a>
  - * @version $Id: SpecularLightingRed.java,v 1.8 2001/10/09 22:17:11 deweese Exp $
  + * @version $Id: SpecularLightingRed.java,v 1.9 2001/10/10 14:45:18 deweese Exp $
    */
   public class SpecularLightingRed extends AbstractTiledRed{
       /**
  @@ -83,9 +83,9 @@
   
           ColorModel cm;
           if (linear)
  -            cm = GraphicsUtil.Linear_sRGB_Unpre;
  +            cm = GraphicsUtil.Linear_sRGB_Pre;
           else
  -            cm = GraphicsUtil.sRGB_Unpre;
  +            cm = GraphicsUtil.sRGB_Pre;
   
           int tw = litRegion.width;
           int th = litRegion.height;
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to