mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 916034 - Return the current surface from GetCairo when backed with a DrawTargetCairo. r=jrmuizel
This commit is contained in:
parent
55fa4d501c
commit
a9bc091490
@ -196,7 +196,7 @@ gfxContext::GetCairo()
|
||||
|
||||
if (mDT->GetType() == BACKEND_CAIRO) {
|
||||
cairo_t *ctx =
|
||||
(cairo_t*)mOriginalDT->GetNativeSurface(NATIVE_SURFACE_CAIRO_CONTEXT);
|
||||
(cairo_t*)mDT->GetNativeSurface(NATIVE_SURFACE_CAIRO_CONTEXT);
|
||||
if (ctx) {
|
||||
return ctx;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user