From: Pablo d'A. <da...@us...> - 2005-01-19 21:38:06
|
Update of /cvsroot/hugin/hugin/src/hugin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12191/src/hugin Modified Files: MainFrame.cpp Log Message: use ::UpdateWindow() to redraw window instead of wxYield.. Only on Windows... Might cause better behaviour while loading big images in the ctrl points panel. Index: MainFrame.cpp =================================================================== RCS file: /cvsroot/hugin/hugin/src/hugin/MainFrame.cpp,v retrieving revision 1.119 retrieving revision 1.120 diff -u -d -r1.119 -r1.120 --- MainFrame.cpp 17 Jan 2005 01:29:39 -0000 1.119 +++ MainFrame.cpp 19 Jan 2005 21:37:46 -0000 1.120 @@ -1054,7 +1054,14 @@ wxStatusBar *m_statbar = GetStatusBar(); DEBUG_TRACE("Statusmb : " << msg.mb_str()); m_statbar->SetStatusText(msg,0); - wxYield(); + + // This is a bad call.. we just want to repaint the window, instead we will + // process user events as well :( Unfortunately, there is not portable workaround... +#ifdef __WXMSW__ + ::UpdateWindow; +#else + wxYield(true); +#endif } |