Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Brown2001-08-29 23:23:18 +0000
committerJeff Brown2001-08-29 23:23:18 +0000
commit52e5325efca97934514919a8d723972c68df0667 (patch)
tree7797e49c4259cf14b214704350c7bc27f97cda3e /bundles
parentcec1ef46551ee29ca8852dfc4345c64bbd08f2a9 (diff)
downloadeclipse.platform.swt-52e5325efca97934514919a8d723972c68df0667.tar.gz
eclipse.platform.swt-52e5325efca97934514919a8d723972c68df0667.tar.xz
eclipse.platform.swt-52e5325efca97934514919a8d723972c68df0667.zip
*** empty log message ***
Diffstat (limited to 'bundles')
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/win32/library/structs.h7
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/win32/library/swt.c78
2 files changed, 78 insertions, 7 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/library/structs.h b/bundles/org.eclipse.swt/Eclipse SWT/win32/library/structs.h
index 72c27e9bad..8b3539f790 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/library/structs.h
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/library/structs.h
@@ -35,13 +35,6 @@
#include <richedit.h>
#include <shlwapi.h>
-/* Some versions of the Microsoft Platform SDK contain a #define hack
- * on wReserved in richtext.h that causes compilation problems.
- */
-#ifdef wReserved
-#undef wReserved
-#endif
-
/* All globals to be declared in globals.h */
#define FID_CACHE_GLOBALS \
MULTI_QI_FID_CACHE MultiqiFc; \
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/library/swt.c b/bundles/org.eclipse.swt/Eclipse SWT/win32/library/swt.c
index a14f86b6ff..2bd629392a 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/library/swt.c
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/library/swt.c
@@ -3220,6 +3220,38 @@ JNIEXPORT jboolean JNICALL Java_org_eclipse_swt_internal_win32_OS_GlobalUnlock
return (jboolean) GlobalUnlock((HANDLE)hMem);
}
+#ifdef USE_2000_CALLS
+/*
+ * Class: org_eclipse_swt_internal_win32_OS
+ * Method: GradientFill
+ * Signature: (IIIIII)Z
+ */
+JNIEXPORT jboolean JNICALL Java_org_eclipse_swt_internal_win32_OS_GradientFill
+ (JNIEnv *env, jclass that, jint hdc, int pVertex, jint dwNumVertex, int pMesh, jint dwNumMesh, jint dwMode)
+{
+ DECL_GLOB(pGlob)
+ BOOL rc = FALSE;
+ HMODULE hm;
+ FARPROC fp;
+
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "GradientFill\n");
+#endif
+ /*
+ ** GradientFill is a Win2000 and Win98 specific call
+ ** If you link it into swt.dll, a system modal entry point not found dialog will
+ ** appear as soon as swt.dll is loaded. Here we check for the entry point and
+ ** only do the call if it exists.
+ */
+ if (! (hm = GetModuleHandle("msimg32.dll"))) hm = LoadLibrary("msimg32.dll");
+ if (hm && (fp = GetProcAddress(hm, "GradientFill"))) {
+ rc = fp((HDC)hdc, (PTRIVERTEX)pVertex, (ULONG)dwNumVertex, (PVOID)pMesh, (ULONG)dwNumMesh, (ULONG)dwMode);
+// rc = GradientFill((HDC)hdc, (PTRIVERTEX)pVertex, (ULONG)dwNumVertex, (PVOID)pMesh, (ULONG)dwNumMesh, (ULONG)dwMode);
+ }
+ return (jboolean) rc;
+}
+#endif
+
/*
* Class: org_eclipse_swt_internal_win32_OS
* Method: HeapAlloc
@@ -4357,6 +4389,29 @@ JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_win32_OS_MoveMemory__I_3II
/*
* Class: org_eclipse_swt_internal_win32_OS
* Method: MoveMemory
+ * Signature: (ILorg/eclipse/swt/internal/win32/GRADIENT_RECT;I)V
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_win32_OS_MoveMemory__ILorg_eclipse_swt_internal_win32_GRADIENT_1RECT_2I
+ (JNIEnv *env, jclass that, jint Destination, jobject Source, jint Length)
+{
+ DECL_GLOB(pGlob)
+ GRADIENT_RECT gradientrect, *lpSource1=NULL;
+
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "MoveMemory__ILorg_eclipse_swt_internal_win32_GRADIENT_1RECT_2I\n");
+#endif
+
+ if (Source) {
+ lpSource1 = &gradientrect;
+ cacheGradientrectFids(env, Source, &PGLOB(GradientrectFc));
+ getGradientrectFields(env, Source, lpSource1, &PGLOB(GradientrectFc));
+ }
+ MoveMemory((PVOID)Destination, lpSource1, Length);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_win32_OS
+ * Method: MoveMemory
* Signature: (ILorg/eclipse/swt/internal/win32/LOGFONT;I)V
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_win32_OS_MoveMemory__ILorg_eclipse_swt_internal_win32_LOGFONT_2I
@@ -4472,6 +4527,29 @@ JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_win32_OS_MoveMemory__ILorg_
/*
* Class: org_eclipse_swt_internal_win32_OS
* Method: MoveMemory
+ * Signature: (ILorg/eclipse/swt/internal/win32/TRIVERTEX;I)V
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_win32_OS_MoveMemory__ILorg_eclipse_swt_internal_win32_TRIVERTEX_2I
+ (JNIEnv *env, jclass that, jint Destination, jobject Source, jint Length)
+{
+ DECL_GLOB(pGlob)
+ TRIVERTEX trivertex, *lpSource1=NULL;
+
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "MoveMemory__ILorg_eclipse_swt_internal_win32_TRIVERTEX_2I\n");
+#endif
+
+ if (Source) {
+ lpSource1 = &trivertex;
+ cacheTrivertexFids(env, Source, &PGLOB(TrivertexFc));
+ getTrivertexFields(env, Source, lpSource1, &PGLOB(TrivertexFc));
+ }
+ MoveMemory((PVOID)Destination, lpSource1, Length);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_win32_OS
+ * Method: MoveMemory
* Signature: (Lorg/eclipse/swt/internal/win32/DRAWITEMSTRUCT;II)V
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_win32_OS_MoveMemory__Lorg_eclipse_swt_internal_win32_DRAWITEMSTRUCT_2II

Back to the top