← Back to team overview

kicad-developers team mailing list archive

Re: [patch] GAL pixel alignment

 

On 11 Feb 2019, at 20:11, Jeff Young <jeff@xxxxxxxxx> wrote:

Nightly works as expected (which is to say the anti-aliasing
settings make a difference, and turning it off makes the canvas look
pretty awful).

Hi Jeff-

Please try with the attached patch.

-Seth
From c027e4e2c7eff3c8155bdb967d88350deba33b41 Mon Sep 17 00:00:00 2001
From: Seth Hillbrand <hillbrand@xxxxxxxxxxx>
Date: Mon, 11 Feb 2019 12:33:11 -0800
Subject: [PATCH] GAL: Restore antialiasing options in Cairo

---
 common/gal/cairo/cairo_gal.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/common/gal/cairo/cairo_gal.cpp b/common/gal/cairo/cairo_gal.cpp
index a71e5c8d43..90c0bd9de5 100644
--- a/common/gal/cairo/cairo_gal.cpp
+++ b/common/gal/cairo/cairo_gal.cpp
@@ -1346,6 +1346,8 @@ void CAIRO_GAL::setCompositor()
     // Recreate the compositor with the new Cairo context
     compositor.reset( new CAIRO_COMPOSITOR( &currentContext ) );
     compositor->Resize( screenSize.x, screenSize.y );
+    compositor->SetAntialiasingMode( options.cairo_antialiasing_mode );
+
 
     // Prepare buffers
     mainBuffer = compositor->CreateBuffer();
-- 
2.20.1


Follow ups

References