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

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

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

revision 1.28 by mkoch, Sun Dec 26 13:35:47 2004 UTC revision 1.29 by mkoch, Tue Jan 11 22:07:32 2005 UTC
# Line 451  public class GdkGraphics2D extends Graph Line 451  public class GdkGraphics2D extends Graph
451      return defaultHints;      return defaultHints;
452    }    }
453    
454    private final int[] findSimpleIntegerArray(ColorModel cm, Raster raster)    public static final int[] findSimpleIntegerArray (ColorModel cm, Raster raster)
455    {    {
456      if (cm == null || raster == null)      if (cm == null || raster == null)
457        return null;        return null;
# Line 494  public class GdkGraphics2D extends Graph Line 494  public class GdkGraphics2D extends Graph
494    {    {
495      if (bimage != null && pixelConversionRequired)      if (bimage != null && pixelConversionRequired)
496        {        {
497          bimage.getRaster().setPixels(0, 0,          int height = bimage.getHeight();
498                                       bimage.getRaster().getWidth (),          int width = bimage.getWidth();
499                                       bimage.getRaster().getHeight (),          for (int y = 0; y < height; ++y)
500                                       pixelBuffer);            for (int x = 0; x < width; ++x)
501                bimage.setRGB(x, y, pixelBuffer[y*width+height]);
502        }        }
503    }    }
504    

Legend:
Removed from v.1.28  
changed lines
  Added in v.1.29

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