X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fxwt%2Fplat%2FWin32.java;h=27ce98b7229d753dece968a02407593a5578103c;hb=c9e1bd707806233eefcaa5497a7a99a95ae3da51;hp=33efa695466d4e0a6febb66438519a648ef9b6da;hpb=bae6b60e2b3aae0e20ee691f718347cf19e951be;p=org.ibex.core.git diff --git a/src/org/xwt/plat/Win32.java b/src/org/xwt/plat/Win32.java index 33efa69..27ce98b 100644 --- a/src/org/xwt/plat/Win32.java +++ b/src/org/xwt/plat/Win32.java @@ -28,7 +28,7 @@ public class Win32 extends GCJ { static int hand_cursor = 0; /** reverse lookup from hwnd to Win32Surface */ - public static Hash hwndToWin32SurfaceMap = new Hash(); + public static Hashtable hwndToWin32SurfaceMap = new Hashtable(); /** lets us know that natInit() is finished */ public static Semaphore messagePumpStarted = new Semaphore(); @@ -145,7 +145,11 @@ public class Win32 extends GCJ { public native void natInit(boolean framed); public Win32Surface(Box b, final boolean framed) { super(b); + if (Log.on) Log.log(this, "before, hwnd = " + hwnd); + if (Log.on) Log.log(this, "before, hdc = " + hdc); natInit(framed); + if (Log.on) Log.log(this, "after, hwnd = " + hwnd); + if (Log.on) Log.log(this, "after, hdc = " + hdc); hwndToWin32SurfaceMap.put(new Integer(hwnd), this); }