← Back to team overview

kicad-developers team mailing list archive

Re: OSX: pcbnew with CORE_GRAPHICS.

 

/**********************************************/
/* Routine pour selectionner le mode de trace */
/**********************************************/
void GRSetDrawMode( wxDC* DC, int draw_mode )
{
if( draw_mode & GR_OR )
DC->SetLogicalFunction( wxOR );
else if( draw_mode & GR_XOR )
DC->SetLogicalFunction( wxXOR );
else if( draw_mode & GR_NXOR )
DC->SetLogicalFunction( wxEQUIV );
else
DC->SetLogicalFunction( wxCOPY );
}

It looks like GR_AND would fall through to wxCOPY in common/gr_basic.cpp

So unless I am mis-interpreting the code, then

1) You are actually using wcCOPY mode.

2) We should get rid of GR_AND in our headers, and use GR_COPY in its place?


Dick




I've found a way to let OSX draw correctly with pcbnew.
I've to admit to don't understand in a complete way why doesn't work correctly but works for me.
Marius could you please try ?
(I'm using the last wxWindows-2.8 svn)

Index: tracepcb.cpp
=========================================================
==========
--- tracepcb.cpp	(revision 958)
+++ tracepcb.cpp	(working copy)
@@ -85,7 +85,7 @@

DrawPanel->DrawBackGround( DC );

- Trace_Pcb( DC, GR_OR );
+ Trace_Pcb( DC, GR_AND );
TraceWorkSheet( DC, GetScreen(), 0 );
Affiche_Status_Box();



------------------------------------

Yahoo! Groups Links







--
Best Regards,

Dick


I pray we can elect a U.S. President that has the common sense to enforce our
existing immigration laws and stop the invasion from Mexico.







Follow ups

References