[kaffe] CVS kaffe (robilad): Resynced with GNU Classpath: implemented createPackedRaster

Kaffe CVS cvs-commits at kaffe.org
Sun Nov 14 12:56:40 PST 2004


PatchSet 5461 
Date: 2004/11/14 20:51:58
Author: robilad
Branch: HEAD
Tag: (none) 
Log:
Resynced with GNU Classpath: implemented createPackedRaster

2004-11-14  Dalibor Topic  <robilad at kaffe.org>

        * libraries/javalib/java/awt/image/Raster.java:
        Resynced with GNU Classpath.

        2004-11-11  Paul Jenner  <psj.home at ntlworld.com>

        * java/awt/image/Raster.java
        (createPackedRaster): Implemented.

Members: 
	ChangeLog:1.3007->1.3008 
	libraries/javalib/java/awt/image/Raster.java:1.6->1.7 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.3007 kaffe/ChangeLog:1.3008
--- kaffe/ChangeLog:1.3007	Sun Nov 14 20:03:22 2004
+++ kaffe/ChangeLog	Sun Nov 14 20:51:58 2004
@@ -1,5 +1,15 @@
 2004-11-14  Dalibor Topic  <robilad at kaffe.org>
 
+	* libraries/javalib/java/awt/image/Raster.java:
+        Resynced with GNU Classpath.
+
+	2004-11-11  Paul Jenner  <psj.home at ntlworld.com>
+
+        * java/awt/image/Raster.java
+        (createPackedRaster): Implemented.
+
+2004-11-14  Dalibor Topic  <robilad at kaffe.org>
+
 	* libraries/javalib/javax/swing/plaf/basic/BasicViewportUI.java,
 	libraries/javalib/javax/swing/text/PlainDocument.java,
 	libraries/javalib/javax/swing/text/SimpleAttributeSet.java:
Index: kaffe/libraries/javalib/java/awt/image/Raster.java
diff -u kaffe/libraries/javalib/java/awt/image/Raster.java:1.6 kaffe/libraries/javalib/java/awt/image/Raster.java:1.7
--- kaffe/libraries/javalib/java/awt/image/Raster.java:1.6	Sun Nov  7 21:10:18 2004
+++ kaffe/libraries/javalib/java/awt/image/Raster.java	Sun Nov 14 20:52:02 2004
@@ -232,6 +232,19 @@
     return new Raster(sm, db, location);
   }
 
+  public static WritableRaster
+  createPackedRaster(DataBuffer dataBuffer,
+                    int w, int h,
+                    int bitsPerPixel,
+                    Point location)
+  {
+    SampleModel sm =
+      new MultiPixelPackedSampleModel(dataBuffer.getDataType(),
+                                      w, h,
+                                      bitsPerPixel);
+    return createWritableRaster(sm, dataBuffer, location);
+  }
+
   public static WritableRaster createWritableRaster(SampleModel sm,
 						    Point location)
   {




More information about the kaffe mailing list