mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-11 16:32:59 +00:00
Bug 233212 - don't set colormap on 1-bit stretch.
r=blizzard sr=byrner a=dveditz
This commit is contained in:
parent
abbe9fc884
commit
f0c294395a
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user