X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fxwt%2Fplat%2FJava2.java;h=bfe57edb01f551288cbf1cb2958fa13b4b11f8ed;hb=456bc0af52725d0babe8db1a6cec88943a3cbed1;hp=ae36394a61b61239d1f87bd93d39057e48875738;hpb=bff5539f68541aed1701a782ff4828c339d51078;p=org.ibex.core.git diff --git a/src/org/xwt/plat/Java2.java b/src/org/xwt/plat/Java2.java index ae36394..bfe57ed 100644 --- a/src/org/xwt/plat/Java2.java +++ b/src/org/xwt/plat/Java2.java @@ -1,4 +1,4 @@ -// Copyright 2003 Adam Megacz, see the COPYING file for licensing [GPL] +// Copyright 2004 Adam Megacz, see the COPYING file for licensing [GPL] package org.xwt.plat; import java.awt.*; @@ -178,7 +178,6 @@ public class Java2 extends AWT { private DataBuffer buf = null; // this doens't seem to work on Windows - /* public void drawGlyph(Picture source, int dx, int dy, int cx1, int cy1, int cx2, int cy2, int rgb) { AWTPicture src = (AWTPicture)source; src.init(); @@ -192,7 +191,7 @@ public class Java2 extends AWT { g2.drawImage(i, 0, 0, null); g2.setClip(0, 0, i.getWidth(null), i.getHeight(null)); } - */ + public Java2PixelBuffer(int w, int h) { sm = cm.createCompatibleSampleModel(w, h); int numSamples = w * h * sm.getNumDataElements();