From 6dda8d4a7e5f3e33ca04215ca289c68efc6fb578 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Sumi=C5=84ski?= Date: Tue, 30 Jul 2013 13:58:03 +0200 Subject: [PATCH] Fixed smudging in the Cairo backend. --- common/gal/cairo/cairo_compositor.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/gal/cairo/cairo_compositor.cpp b/common/gal/cairo/cairo_compositor.cpp index 53c8cc431e..fa6b6918f7 100644 --- a/common/gal/cairo/cairo_compositor.cpp +++ b/common/gal/cairo/cairo_compositor.cpp @@ -1,4 +1,4 @@ -/*i +/* * This program source code file is part of KiCad, a free EDA CAD application. * * Copyright (C) 2013 CERN @@ -69,6 +69,7 @@ unsigned int CAIRO_COMPOSITOR::GetBuffer() { // Pixel storage BitmapPtr bitmap( new unsigned int[m_bufferSize] ); + memset( bitmap.get(), 0x00, m_bufferSize * sizeof(int) ); // Create the Cairo surface cairo_surface_t* surface = cairo_image_surface_create_for_data(