corrected warnings

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16171 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Gilles Depeyrot
2002-07-14 13:21:23 +00:00
parent 32f1f0837e
commit dda2e4fdca
3 changed files with 19 additions and 19 deletions

View File

@@ -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
}