// Copyright 2004 Adam Megacz, see the COPYING file for licensing [LGPL]
package org.ibex.plat;
-import org.ibex.*;
import org.ibex.util.*;
import java.util.*;
import org.ibex.js.*;
HTTP.Proxy ret = new HTTP.Proxy();
if (container[2] != null) {
- ret.proxyAutoConfigFunction = HTTP.Proxy.getProxyAutoConfigFunction(container[2]);
+ // FIXME
+ //ret.proxyAutoConfigFunction = HTTP.Proxy.getProxyAutoConfigFunction(container[2]);
if (ret.proxyAutoConfigFunction != null) return ret;
}
// Win32Surface ////////////////////////////////////////////////////////////////////////////
- public static class Win32Surface extends Surface.DoubleBufferedSurface {
+ public static class Win32Surface extends Surface {
+ public PixelBuffer getPixelBuffer() { return null; } // FIXME
+
+ // hack
+ String cursor;
+
/** used to block while waiting for the message pump thread to create a hwnd for us */
public Semaphore hwndCreated = new Semaphore();
// Win32PixelBuffer //////////////////////////////////////////////////////////////////////////
- public static class Win32PixelBuffer extends PixelBuffer {
+ public static class Win32PixelBuffer implements PixelBuffer {
+ public void fillTriangle(int x1, int y1, int x2, int y2, int x3, int y3, int argb) { throw new Error("not implemented"); }
+
+ public void drawPicture(Picture p, Affine a, Mesh h) { throw new Error("drawPicture() not implemented"); }
+ public void drawGlyph(Font.Glyph source,Affine a,Mesh h,int rgb,int bg) { throw new Error("drawGlyph() not implemented"); }
+ public void drawLine(int x1, int y1, int x2, int y2, int color) { }
+ public void drawGlyph(Font.Glyph source, int dx1, int dy1, int cx1, int cy1, int cx2, int cy2, int rgb, int pc){}
+ public void stroke(Polygon p, int color){}
+ public void fill(Polygon p, Paint paint){}
int w = 0;
int h = 0;
((Win32Picture)source).init();
drawPicture(source, dx, dy, cx1, cy1, cx2, cy2, 0, false);
}
- public void drawGlyph(org.ibex.Font.Glyph source, int dx, int dy, int cx1, int cy1, int cx2, int cy2, int rgb) {
+ public void drawGlyph(Font.Glyph source, int dx, int dy, int cx1, int cy1, int cx2, int cy2, int rgb) {
Win32Picture p = ((Win32Picture)((Platform.DefaultGlyph)source).getPicture());
p.init();
drawPicture(p, dx, dy, cx1, cy1, cx2, cy2, rgb, true);