Repaint ScEd at 2 fps when non-minimised but behind other windows

This was SVN commit r2339.
This commit is contained in:
Ykkrosh
2005-05-23 03:11:04 +00:00
parent 56343ae9c8
commit 6c7dfedcbf
+12 -7
View File
@@ -187,13 +187,18 @@ int CScEdApp::Run()
// do idle time processing
CMainFrame* mainfrm=(CMainFrame*) AfxGetMainWnd();
if (mainfrm) {
if (!mainfrm->IsIconic()) {
CScEdView* view=(CScEdView*) mainfrm->GetActiveView();
if (view) {
view->IdleTimeProcess();
}
}
Sleep(50);
// longer delay when visible but not active
if (!mainfrm->IsTopParentActive())
Sleep(450);
if (!mainfrm->IsIconic()) {
CScEdView* view=(CScEdView*) mainfrm->GetActiveView();
if (view) {
view->IdleTimeProcess();
}
}
Sleep(50);
}
}