diff options
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT AWT/win32/library/swt_awt.c')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT AWT/win32/library/swt_awt.c | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT AWT/win32/library/swt_awt.c b/bundles/org.eclipse.swt/Eclipse SWT AWT/win32/library/swt_awt.c deleted file mode 100644 index 0df8e82fb7..0000000000 --- a/bundles/org.eclipse.swt/Eclipse SWT AWT/win32/library/swt_awt.c +++ /dev/null @@ -1,45 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2008 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - -#include "swt.h" -#include "jawt_md.h" - -#define SWT_AWT_NATIVE(func) Java_org_eclipse_swt_awt_SWT_1AWT_##func - -#ifndef NO_getAWTHandle -JNIEXPORT jintLong JNICALL SWT_AWT_NATIVE(getAWTHandle) - (JNIEnv *env, jclass that, jobject canvas) -{ - JAWT awt; - JAWT_DrawingSurface* ds; - JAWT_DrawingSurfaceInfo* dsi; - JAWT_Win32DrawingSurfaceInfo* dsi_win; - jintLong result = 0; - jint lock; - - awt.version = JAWT_VERSION_1_3; - if (JAWT_GetAWT(env, &awt) != 0) { - ds = awt.GetDrawingSurface(env, canvas); - if (ds != NULL) { - lock = ds->Lock(ds); - if ((lock & JAWT_LOCK_ERROR) == 0) { - dsi = ds->GetDrawingSurfaceInfo(ds); - dsi_win = (JAWT_Win32DrawingSurfaceInfo*)dsi->platformInfo; - result = (jintLong)dsi_win->hwnd; - ds->FreeDrawingSurfaceInfo(dsi); - ds->Unlock(ds); - } - } - awt.FreeDrawingSurface(ds); - } - return result; -} -#endif |