*not part of the build*

fix for 83320


git-svn-id: svn://10.0.0.236/trunk@96126 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
idk%eng.sun.com
2001-05-31 19:04:36 +00:00
parent 2ff5c882a8
commit f31ee1309b

View File

@@ -51,10 +51,16 @@ extern "C" void getAwtData(int *awt_depth,
extern "C" Display *getAwtDisplay(void);
#if 0
extern "C" void getAwtLockFunctions(void (**AwtLock)(JNIEnv *),
void (**AwtUnlock)(JNIEnv *),
void (**AwtNoFlushUnlock)(JNIEnv *),
void *pReserved);
#endif
extern "C" void getAwtLockFunctions(void *AwtLock,
void *AwtUnlock,
void *AwtNoFlushUnlock,
void *pReserved);
static int awt_depth;
static Colormap awt_cmap;
@@ -80,7 +86,8 @@ void PlugletViewMotif::Initialize() {
clazz = NULL;
return;
}
getAwtData(&awt_depth, &awt_cmap, &awt_visual, &awt_num_colors, NULL);
getAwtData((void*)&awt_depth, (void*)&awt_cmap, (void*)&awt_visual,
(void*)&awt_num_colors, NULL);
getAwtLockFunctions(&AwtLock, &AwtUnLock, &AwtNoFlushUnLock,NULL);
}
@@ -112,7 +119,7 @@ PRBool PlugletViewMotif::SetWindow(nsPluginWindow* win) {
return PR_FALSE;
}
AwtLock(env);
int containerWindowID = win->window;
int containerWindowID = (int) win->window;
printf("containerWindowID=%d WindowID=%d\n",containerWindowID, WindowID);
#if 0
if (WindowID == containerWindowID) {