From c0defccf67138487669c985402fc19ce86eba80d Mon Sep 17 00:00:00 2001 From: VKamyshniy Date: Thu, 20 Nov 2014 21:04:51 +0200 Subject: [PATCH] [Summary] No chance of using cairo image surface --- libs/canvas/canvas.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/canvas/canvas.cc b/libs/canvas/canvas.cc index 1857ea27c3..8b926ef4bc 100644 --- a/libs/canvas/canvas.cc +++ b/libs/canvas/canvas.cc @@ -723,7 +723,7 @@ void GtkCanvas::on_size_allocate (Gtk::Allocation& a) { EventBox::on_size_allocate (a); -#ifdef USE_CAIRO_IMAGE_SURFACE +#ifdef USE_CAIRO_IMAGE_SURFACE_FOR_CANVAS /* allocate an image surface as large as the canvas itself */ canvas_image.clear (); canvas_image = Cairo::ImageSurface::create (Cairo::FORMAT_ARGB32, a.get_width(), a.get_height()); @@ -737,7 +737,7 @@ GtkCanvas::on_size_allocate (Gtk::Allocation& a) bool GtkCanvas::on_expose_event (GdkEventExpose* ev) { -#ifdef USE_CAIRO_IMAGE_SURFACE +#ifdef USE_CAIRO_IMAGE_SURFACE_FOR_CANVAS if (!canvas_image) { canvas_image = Cairo::ImageSurface::create (Cairo::FORMAT_ARGB32, get_width(), get_height()); } @@ -764,7 +764,7 @@ GtkCanvas::on_expose_event (GdkEventExpose* ev) render (Rect (ev->area.x, ev->area.y, ev->area.x + ev->area.width, ev->area.y + ev->area.height), draw_context); -#ifdef USE_CAIRO_IMAGE_SURFACE +#ifdef USE_CAIRO_IMAGE_SURFACE_FOR_CANVAS /* now blit our private surface back to the GDK one */ window_context->rectangle (ev->area.x, ev->area.y, ev->area.width, ev->area.height);