corrected warnings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16171 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1580,24 +1580,24 @@ void InitialiseColourTable(void)
|
||||
* The purpose of this is to reduce the number of times wxYield is
|
||||
* called, since under Windows this can slow things down.
|
||||
*/
|
||||
|
||||
static int yieldCount = 0;
|
||||
|
||||
void Tex2RTFYield(bool force)
|
||||
{
|
||||
#ifdef __WXMSW__
|
||||
if (isSync)
|
||||
return;
|
||||
static int yieldCount = 0;
|
||||
|
||||
if (force)
|
||||
yieldCount = 0;
|
||||
if (yieldCount == 0)
|
||||
{
|
||||
if (wxTheApp)
|
||||
wxYield();
|
||||
yieldCount = 10;
|
||||
}
|
||||
yieldCount --;
|
||||
if (isSync)
|
||||
return;
|
||||
|
||||
if (force)
|
||||
yieldCount = 0;
|
||||
if (yieldCount == 0)
|
||||
{
|
||||
if (wxTheApp)
|
||||
wxYield();
|
||||
yieldCount = 10;
|
||||
}
|
||||
yieldCount --;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user