Corretta set_cursor
git-svn-id: svn://10.65.10.50/trunk@817 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
35fa980610
commit
a1fb8b2989
@ -646,18 +646,18 @@ bool TApplication::config()
|
|||||||
|
|
||||||
void TApplication::set_cursor(bool w)
|
void TApplication::set_cursor(bool w)
|
||||||
{
|
{
|
||||||
static _count = 0;
|
static int _count = 0;
|
||||||
if (w)
|
if (w)
|
||||||
{
|
{
|
||||||
_count++;
|
if (_count == 0)
|
||||||
if (_count == 1)
|
|
||||||
::set_cursor(TASK_WIN, CURSOR_WAIT);
|
::set_cursor(TASK_WIN, CURSOR_WAIT);
|
||||||
|
_count++;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
_count--;
|
_count--;
|
||||||
#ifdef DBG
|
#ifdef DBG
|
||||||
if (_count >= 0)
|
if (_count < 0)
|
||||||
yesnofatal_box("end_wait without matching begin_wait");
|
yesnofatal_box("end_wait without matching begin_wait");
|
||||||
#endif
|
#endif
|
||||||
if (_count == 0)
|
if (_count == 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user