X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fxwt%2Fplat%2FWin32.java;h=314089867cdcabb126dedfa42b3fe2f2ade8583f;hb=d602d58d0fa307be96122e2fe4e0606015bd5d00;hp=938b6c27befe68b777ee0555d2af40ccdd5f9e3b;hpb=e2dedbcad71fdf6df74abe5c43516a4d88d145d3;p=org.ibex.core.git diff --git a/src/org/xwt/plat/Win32.java b/src/org/xwt/plat/Win32.java index 938b6c2..3140898 100644 --- a/src/org/xwt/plat/Win32.java +++ b/src/org/xwt/plat/Win32.java @@ -1,4 +1,4 @@ -// Copyright 2003 Adam Megacz, see the COPYING file for licensing [LGPL] +// Copyright 2004 Adam Megacz, see the COPYING file for licensing [LGPL] package org.xwt.plat; import org.xwt.*; @@ -43,16 +43,7 @@ public class Win32 extends GCJ { public Win32() { } - public void init() { - String logfile = getTempPath() + "xwt-log.txt"; - try { - PrintStream ps = new PrintStream(new FileOutputStream(logfile)); - System.setOut(ps); - System.setErr(ps); - } catch (Throwable e) { - criticalAbort("Exception while attempting to redirect logging to " + logfile + " -- " + e); - } - + public void postInit() { new Thread() { public void run() { natInit(); } }.start(); messagePumpStarted.block(); } @@ -92,8 +83,8 @@ public class Win32 extends GCJ { HTTP.Proxy ret = new HTTP.Proxy(); if (container[2] != null) { - ret.proxyAutoConfigJSFunction = HTTP.Proxy.getProxyAutoConfigJSFunction(container[2]); - if (ret.proxyAutoConfigJSFunction != null) return ret; + ret.proxyAutoConfigFunction = HTTP.Proxy.getProxyAutoConfigFunction(container[2]); + if (ret.proxyAutoConfigFunction != null) return ret; } if (container[0] == null) return null; @@ -268,7 +259,7 @@ public class Win32 extends GCJ { drawPicture(source, dx, dy, cx1, cy1, cx2, cy2, 0, false); } public void drawGlyph(org.xwt.Font.Glyph source, int dx, int dy, int cx1, int cy1, int cx2, int cy2, int rgb) { - Win32Picture p = ((Win32Picture)((DefaultGlyph)source).getPicture()); + Win32Picture p = ((Win32Picture)((Platform.DefaultGlyph)source).getPicture()); p.init(); drawPicture(p, dx, dy, cx1, cy1, cx2, cy2, rgb, true); }