← Back to team overview

kicad-developers team mailing list archive

Re: MacOSX - Pcbnew: Refresh issues with onload

 


I would say find a way to fix this so we do not need the

#ifndef __WXMAX__


Maybe Wayne or Jean-Pierre and see a way to this.

It may simply be that we don't need the Affiche_Status_Box() calls for any OS at these specific locations. It seems like that would be true if Affiche_Status_Box() is managing a different "window or widget" at the operating system level.


It may be that a call to this function AT THIS LOCATION is a relic that was obsoleted after I re-wrote the Draw() function in the status window a year or so ago.


Dick



Marco Serantoni wrote:
Pcbnew suffers of weird refresh issues. Those weird refresh issues are evident when loading board files and when cancelling tracks (
http://www.mdx4.org/uploads/elettronics/Kicad/kicad_OSX_onload_issue.tiff ).
This issue is caused by some restriction with wxDC reentrancy.

My proposal is to avoid to cause refresh of the statusbox in RedrawActiveWindow in both WinEDA_ModuleEditFrame and WinEDA_PcbFrame.


Index: tracepcb.cpp
===================================================================
--- tracepcb.cpp	(revision 1680)
+++ tracepcb.cpp	(working copy)
@@ -48,9 +48,9 @@
{
module->Draw( DrawPanel, DC, GR_OR );
}
-
+#ifndef __WXMAC__
Affiche_Status_Box();
-
+#endif
if( DrawPanel->ManageCurseur )
DrawPanel->ManageCurseur( DrawPanel, DC, FALSE );

@@ -88,9 +88,9 @@
DrawGeneralRatsnest( DC );

GetScreen()->ClrRefreshReq();
-
+#ifndef __WXMAC__ Affiche_Status_Box();
-
+#endif
if( DrawPanel->ManageCurseur )
DrawPanel->ManageCurseur( DrawPanel, DC, FALSE );



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

Yahoo! Groups Links












Follow ups

References