[Date Prev][Date Next][Thread Prev][Thread Next][Thread Index]

[XaraXtreme-commits] Commit Complete



Commit by  : alex
Repository : xara
Revision   : 1653
Date       : Thu Aug  3 10:14:23 BST 2006

Changed paths:
   M /Trunk/XaraLX/wxOil/camelot.cpp

Hopefully stop mainframe appearing half-painted for a while on release wxWidgets 2.6.3


Diff:
Index: Trunk/XaraLX/wxOil/camelot.cpp
===================================================================
--- Trunk/XaraLX/wxOil/camelot.cpp	(revision 1652)
+++ Trunk/XaraLX/wxOil/camelot.cpp	(revision 1653)
@@ -920,6 +920,8 @@
 	m_pMainFrame = new CCamFrame( m_docManager.get(), (wxFrame *)NULL, wxT("Xara Xtreme"), 
 		WndRect.GetPosition(), WndRect.GetSize(), wxDEFAULT_FRAME_STYLE);
 
+	m_pMainFrame->Show(FALSE); // Don't show it yet
+
 #if !defined(XARA_MENUGEN)
 	TRACET(_T("CCamApp::Making Menu structure"));
 	//
@@ -993,7 +995,11 @@
 		m_pMainFrame->Iconize();
 	}
 	SetTopWindow( m_pMainFrame );
+	::wxYield(); // allow resizing to take place
 	m_pMainFrame->Show( true );
+	::wxYield(); // allow resizing to take place
+	wxPlatformDependent::Get()->FixUpdate(m_pMainFrame); // Force the main frame to be redrawn properly
+	::wxYield(); // allow resizing to take place
 
 #ifndef EXCLUDE_FROM_XARALX
 	m_pMainFrame->CacheNormalPlaceMode();


Xara