From 3e2b16a820bfe03f8f3837c3aaa615c8c4b7f18c Mon Sep 17 00:00:00 2001
From: Sven Gothel <sgothel@jausoft.com>
Date: Tue, 13 Feb 2001 05:32:07 +0000
Subject: JAWT Support JDK >=1.3

---
 gl4java/jau/awt/windows/Win32HandleAccess.java | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

(limited to 'gl4java/jau/awt/windows/Win32HandleAccess.java')

diff --git a/gl4java/jau/awt/windows/Win32HandleAccess.java b/gl4java/jau/awt/windows/Win32HandleAccess.java
index 38b5c93..d4a698f 100644
--- a/gl4java/jau/awt/windows/Win32HandleAccess.java
+++ b/gl4java/jau/awt/windows/Win32HandleAccess.java
@@ -28,7 +28,8 @@ public class Win32HandleAccess
 
   protected DrawingSurfaceInfo dsi;
   protected Win32DrawingSurface wds;
-  protected int window, depth;
+  protected long window;
+  protected int depth;
 
   protected void achieveData(java.awt.Component c, java.awt.Graphics g)
   {
@@ -47,7 +48,7 @@ public class Win32HandleAccess
 	if(wds!=null)
 	{
 		dsi.lock();
-		window = wds.getHDC();
+		window = (long) wds.getHDC();
 		depth = wds.getDepth();
 		/*
 			System.out.println("wds ="+wds);
@@ -65,7 +66,7 @@ public class Win32HandleAccess
  *
  * gets some structure for windows, and drawable on Win32
  */
-  public int getWinHandle(java.awt.Component c, java.awt.Graphics g)
+  public long getWinHandle(java.awt.Component c, java.awt.Graphics g)
   {
       achieveData(c, g);
       return window;
-- 
cgit v1.2.3