kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #02799
Problems with filled pads during placing and moving
-
To:
kicad-devel@xxxxxxxxxxxxxxx
-
From:
"Marco Serantoni" <marco.serantoni@...>
-
Date:
Tue, 23 Jun 2009 23:10:36 -0000
-
User-agent:
eGroups-EW/0.82
This is a patch proposal to fix problems with filled pads during placing and moving, the filled pads aren't XORed correctly leaving dirty background.
--
Marco
Index: modules.cpp
===================================================================
--- modules.cpp (revision 1837)
+++ modules.cpp (working copy)
@@ -787,8 +787,11 @@
if( g_Show_Pads_Module_in_Move )
{
pad_fill_tmp = DisplayOpt.DisplayPadFill;
+#ifndef __WXMAC__
DisplayOpt.DisplayPadFill = true; /* Trace en SKETCH en deplacement */
-
+#else
+ DisplayOpt.DisplayPadFill = false;
+#endif
pt_pad = module->m_Pads;
for( ; pt_pad != NULL; pt_pad = pt_pad->Next() )
{
Index: class_pad_draw_functions.cpp
===================================================================
--- class_pad_draw_functions.cpp (revision 1832)
+++ class_pad_draw_functions.cpp (working copy)
@@ -46,8 +46,8 @@
if( frame->m_DisplayPadFill == FILLED )
fillpad = 1;
-#ifdef PCBNEW
- if( m_Flags & IS_MOVED )
+#if defined(PCBNEW) || defined(__WXMAC__)
+ if( m_Flags & IS_MOVED || !DisplayOpt.DisplayPadFill )
fillpad = 0;
#endif
Follow ups