X-Git-Url: http://git.megacz.com/?p=org.ibex.core.git;a=blobdiff_plain;f=src%2Forg%2Fibex%2Fplat%2FWin32.java;h=d30ea04d9fe53d781d897b67c22cad0de3bac374;hp=592baf951cd121e72df52459519eda4357459a8d;hb=955ccd260ab1acc239ee60cef1ccd48115cc8597;hpb=3591b88b94a6bb378af3d4abe6eb5233ce583104 diff --git a/src/org/ibex/plat/Win32.java b/src/org/ibex/plat/Win32.java index 592baf9..d30ea04 100644 --- a/src/org/ibex/plat/Win32.java +++ b/src/org/ibex/plat/Win32.java @@ -1,10 +1,12 @@ // 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.*; +import org.ibex.graphics.*; +import org.ibex.core.*; +import org.ibex.net.*; /** Platform specific code for GCJ-compiled Win32 binaries */ public class Win32 extends GCJ { @@ -83,8 +85,9 @@ public class Win32 extends GCJ { HTTP.Proxy ret = new HTTP.Proxy(); if (container[2] != null) { - ret.proxyAutoConfigFunction = HTTP.Proxy.getProxyAutoConfigFunction(container[2]); - if (ret.proxyAutoConfigFunction != null) return ret; + // FIXME + //ret.proxyAutoConfigFunction = HTTP.Proxy.getProxyAutoConfigFunction(container[2]); + //if (ret.proxyAutoConfigFunction != null) return ret; } if (container[0] == null) return null; @@ -134,8 +137,13 @@ public class Win32 extends GCJ { // 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(); @@ -227,8 +235,16 @@ public class Win32 extends GCJ { // 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(Mesh p, int color){} + public void fill(Mesh p, Paint paint){} int w = 0; int h = 0; @@ -257,7 +273,7 @@ public class Win32 extends GCJ { ((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);