Skip to content

Commit

Permalink
Fix #1611
Browse files Browse the repository at this point in the history
  • Loading branch information
gnunn1 committed Jan 2, 2019
1 parent 2f965ef commit 855a06e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion source/gx/tilix/session.d
Original file line number Diff line number Diff line change
Expand Up @@ -1019,7 +1019,12 @@ private:
cr.paint();

//Draw child onto temporary image so it doesn't overdraw background
ImageSurface isChildSurface = ImageSurface.create(cairo_format_t.ARGB32, child.getAllocatedWidth(), child.getAllocatedHeight());
import cairo.Surface: Surface;
Surface isChildSurface = cr.getTarget().createSimilar(cairo_content_t.COLOR_ALPHA, child.getAllocatedWidth(), child.getAllocatedHeight());
if (isChildSurface is null) {
trace("****** ImageSurface is null");
isChildSurface = ImageSurface.create(cairo_format_t.ARGB32, child.getAllocatedWidth(), child.getAllocatedHeight());
}
Context crChild = Context.create(isChildSurface);
scope (exit) {
crChild.destroy();
Expand Down

0 comments on commit 855a06e

Please sign in to comment.