Patch #981 2006-04-04 03:36

pecan

Fixes bug 6829 Splash loop
Download
981-Fixes_bug_6829.patch (709 bytes)
Category
 
Status
Accepted
Close date
2006-04-05 07:45
Assigned to
 
This patch seems to have fixed the Splash loop on my XP
system with SVN 2290


Index: src/src/splashscreen.cpp
===================================================================
--- src/src/splashscreen.cpp    (revision 2290)
+++ src/src/splashscreen.cpp    (working copy)
@@ -22,12 +22,16 @@
 
 void cbSplashScreen::OnPaint(wxPaintEvent &)
 {
+    // an obscure statement in the wxWidgets book says to
+    // allocate the DC even if you don't paint to avoid
+    // a paint loop.    //pecan 2006/04/3
+  wxPaintDC paint_dc(this); //pecan 2006/04/3
   if (m_painted)
   {
     return;
   }
 
-  wxPaintDC paint_dc(this);
+  //-wxPaintDC paint_dc(this);
   DoPaint(paint_dc);
   m_painted = true; // paint once
 }