mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 909128 - Support snapshot source surfaces in DrawTargetCG's CopySurface. r=jrmuizel
This commit is contained in:
parent
69fc8f5296
commit
829d88b2b4
@ -1096,7 +1096,8 @@ DrawTargetCG::CopySurface(SourceSurface *aSurface,
|
|||||||
|
|
||||||
CGImageRef image;
|
CGImageRef image;
|
||||||
CGImageRef subimage = nullptr;
|
CGImageRef subimage = nullptr;
|
||||||
if (aSurface->GetType() == SURFACE_COREGRAPHICS_IMAGE) {
|
if (aSurface->GetType() == SURFACE_COREGRAPHICS_IMAGE ||
|
||||||
|
aSurface->GetType() == SURFACE_COREGRAPHICS_CGCONTEXT) {
|
||||||
image = GetImageFromSourceSurface(aSurface);
|
image = GetImageFromSourceSurface(aSurface);
|
||||||
/* we have two options here:
|
/* we have two options here:
|
||||||
* - create a subimage -- this is slower
|
* - create a subimage -- this is slower
|
||||||
|
Loading…
Reference in New Issue
Block a user