зеркало из https://github.com/mozilla/gecko-dev.git
Bug 89280 - forgetting to update the destination alpha clipmask in DrawToImage.
r=pavlov, sr=blizzard
This commit is contained in:
Родитель
b34a88c9f6
Коммит
897cc62fcc
|
@ -1720,6 +1720,21 @@ NS_IMETHODIMP nsImageGTK::DrawToImage(nsIImage* aDstImage,
|
|||
|
||||
gdk_gc_unref(gc);
|
||||
|
||||
if ((mAlphaDepth==1) && (dest->mAlphaPixmap)) {
|
||||
GdkGCValues values;
|
||||
GdkGCValuesMask vmask;
|
||||
|
||||
memset(&values, 0, sizeof(GdkGCValues));
|
||||
values.function = GDK_OR;
|
||||
vmask = GDK_GC_FUNCTION;
|
||||
gc = gdk_gc_new_with_values(dest->mAlphaPixmap, &values, vmask);
|
||||
gdk_window_copy_area(dest->mAlphaPixmap, gc,
|
||||
aDX, aDY,
|
||||
mAlphaPixmap,
|
||||
0, 0, mWidth, mHeight);
|
||||
gdk_gc_unref(gc);
|
||||
}
|
||||
|
||||
if (!mIsSpacer || !mAlphaDepth)
|
||||
dest->mIsSpacer = PR_FALSE;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче