Changeset 5482 for trunk/src/user32/winicon.cpp
- Timestamp:
- Apr 5, 2001, 11:31:28 AM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/winicon.cpp
r5385 r5482 1 /* $Id: winicon.cpp,v 1.2 0 2001-03-27 16:17:52sandervl Exp $ */1 /* $Id: winicon.cpp,v 1.21 2001-04-05 09:31:28 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Icon Code for OS/2 … … 54 54 #include "oslibres.h" 55 55 #include "oslibwin.h" 56 #include "dc.h" 56 57 57 58 #define DBG_LOCALLOG DBG_winicon … … 410 411 //****************************************************************************** 411 412 //****************************************************************************** 412 int WIN32API ShowCursor( BOOL bShow) 413 INT OPEN32API __ShowCursor(BOOL bShow); 414 415 inline INT _ShowCursor (BOOL bShow) 416 { 417 INT yyrc; 418 USHORT sel = RestoreOS2FS(); 419 420 yyrc = __ShowCursor(bShow); 421 SetFS(sel); 422 423 return yyrc; 424 } 425 //****************************************************************************** 426 static int cursorshowcnt = 0; 427 //****************************************************************************** 428 void RestoreCursor() 429 { 430 dprintf2(("USER32: RestoreCursor %d", cursorshowcnt)); 431 while(cursorshowcnt != 0) 432 { 433 if(cursorshowcnt > 0 ) 434 { 435 ShowCursor(FALSE); 436 } 437 else 438 { 439 ShowCursor(TRUE); 440 } 441 } 442 } 443 //****************************************************************************** 444 //****************************************************************************** 445 int WIN32API ShowCursor(BOOL bShow) 413 446 { 414 447 dprintf2(("USER32: ShowCursor %d", bShow)); 415 return O32_ShowCursor(bShow); 416 } 417 //****************************************************************************** 418 //****************************************************************************** 448 cursorshowcnt = cursorshowcnt + ((bShow) ? 1 : -1); 449 return _ShowCursor(bShow); 450 } 419 451 /*********************************************************************** 420 452 * CreateCursorIconIndirect
Note:
See TracChangeset
for help on using the changeset viewer.