2002/07/01 21:00:05
[org.ibex.core.git] / src / org / xwt / XWF.java
index 7b6f8e2..3c02da8 100644 (file)
@@ -68,9 +68,10 @@ public class XWF {
         Integer color = new Integer(argb | 0xFF000000);
         Picture pg = (Picture)pictures.get(color);
         if (pg == null) {
+            int[] data2 = new int[data.length];
             for(int i=0; i<data.length; i++)
-                data[i] = (data[i] & 0xFF000000) | (argb & 0x00FFFFFF);
-            pg = Platform.createPicture(data, w, h);
+                data2[i] = (data[i] & 0xFF000000) | (argb & 0x00FFFFFF);
+            pg = Platform.createPicture(data2, w, h);
             pictures.put(color, pg);
         }