X-Git-Url: http://git.megacz.com/?p=org.ibex.core.git;a=blobdiff_plain;f=src%2Forg%2Fibex%2Fplat%2FWin32.java;h=9700d1e45494b019ae93997b2ea90f351530db11;hp=e0342581769019ac36e2485cad723d72df640077;hb=098f2fd17df6500e8dad466c162c2e0589cc7df5;hpb=8e190fb0ff508ccf4962bbfbf8295a431805c12b diff --git a/src/org/ibex/plat/Win32.java b/src/org/ibex/plat/Win32.java index e034258..9700d1e 100644 --- a/src/org/ibex/plat/Win32.java +++ b/src/org/ibex/plat/Win32.java @@ -1,7 +1,6 @@ // 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.*; @@ -86,7 +85,8 @@ public class Win32 extends GCJ { 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; } @@ -137,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(); @@ -230,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(Polygon p, int color){} + public void fill(Polygon p, Paint paint){} int w = 0; int h = 0; @@ -260,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);