fix for #85958 Shockwave/Flash pages cause crash under Solaris [x-server/bit-depth], patch by sep@sparc.spb.su,r=serge,sr=blizzard

git-svn-id: svn://10.0.0.236/trunk@123666 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
serge%netscape.com
2002-06-20 01:50:54 +00:00
parent a70407e6e2
commit 7e3e5f670d
2 changed files with 9 additions and 6 deletions

View File

@@ -884,9 +884,9 @@ NS_IMETHODIMP ns4xPluginInstance::SetWindow(nsPluginWindow* window)
// fill in window info structure
ws->type = 0; // OK, that was a guess!!
ws->depth = gdk_rgb_get_visual()->depth;
ws->depth = gdk_window_get_visual(win)->depth;
ws->display = GTK_XTBIN(mXtBin)->xtdisplay;
ws->visual = GDK_VISUAL_XVISUAL(gdk_rgb_get_visual());
ws->visual = GDK_VISUAL_XVISUAL(gdk_window_get_visual(win));
ws->colormap = GDK_COLORMAP_XCOLORMAP(gdk_window_get_colormap(win));
XFlush(ws->display);