Bug 233212 - don't set colormap on 1-bit stretch.

r=blizzard sr=byrner a=dveditz
This commit is contained in:
tor%cs.brown.edu 2004-02-18 20:58:51 +00:00
parent abbe9fc884
commit f0c294395a

View File

@ -522,7 +522,9 @@ XlibRectStretch(PRInt32 srcWidth, PRInt32 srcHeight,
scaleEndY-scaleStartY,
aDepth);
#ifdef MOZ_WIDGET_GTK2
gdk_drawable_set_colormap(GDK_DRAWABLE(aTmpImage), gdk_rgb_get_colormap());
if (aDepth != 1)
gdk_drawable_set_colormap(GDK_DRAWABLE(aTmpImage),
gdk_rgb_get_colormap());
#endif
}