/[classpath]/classpath/gnu/java/awt/peer/gtk/GtkImageConsumer.java
ViewVC logotype

Diff of /classpath/gnu/java/awt/peer/gtk/GtkImageConsumer.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by mark, Sat Jul 2 20:32:12 2005 UTC revision 1.4 by fitzsim, Tue Jul 26 01:53:25 2005 UTC
# Line 45  import java.awt.image.DirectColorModel; Line 45  import java.awt.image.DirectColorModel;
45  import java.awt.image.ImageConsumer;  import java.awt.image.ImageConsumer;
46  import java.awt.image.ImageObserver;  import java.awt.image.ImageObserver;
47  import java.awt.image.ImageProducer;  import java.awt.image.ImageProducer;
48    import java.awt.image.MemoryImageSource;
49  import java.util.Hashtable;  import java.util.Hashtable;
50  import java.util.Vector;  import java.util.Vector;
51    
# Line 70  public class GtkImageConsumer implements Line 71  public class GtkImageConsumer implements
71    
72    public synchronized void imageComplete (int status)    public synchronized void imageComplete (int status)
73    {    {
74      source.removeConsumer(this);      // we need to reuse the pixel cache for memory image sources since
75        // a memory image's backing array can be updated "live".
76        if (!(source instanceof MemoryImageSource))
77          source.removeConsumer(this);
78      target.setImage(width, height, pixelCache, properties);      target.setImage(width, height, pixelCache, properties);
79    }    }
80    

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26