X-Git-Url: http://git.megacz.com/?p=org.ibex.core.git;a=blobdiff_plain;f=src%2Forg%2Fibex%2Fplat%2FWin32.java;h=86f79a3940a08e40bd953a2befe65de37cd37ef5;hp=e0342581769019ac36e2485cad723d72df640077;hb=297fdbde87e6db4732448a0950d1141c7265c169;hpb=8e190fb0ff508ccf4962bbfbf8295a431805c12b diff --git a/src/org/ibex/plat/Win32.java b/src/org/ibex/plat/Win32.java index e034258..86f79a3 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,12 @@ public class Win32 extends GCJ { // Win32PixelBuffer ////////////////////////////////////////////////////////////////////////// - public static class Win32PixelBuffer extends PixelBuffer { + public static class Win32PixelBuffer implements PixelBuffer { + 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 +269,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);