Changeset 9156
- Timestamp:
 - Aug 28, 2002, 10:21:48 AM (23 years ago)
 - Location:
 - trunk
 - Files:
 - 
      
- 4 edited
 
- 
          
  include/custombuild.h (modified) (1 diff)
 - 
          
  src/ddraw/OS2DDRAW.CPP (modified) (3 diffs)
 - 
          
  src/ddraw/OS2DDRAW.H (modified) (2 diffs)
 - 
          
  src/ddraw/OS2SURFACE.CPP (modified) (4 diffs)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
trunk/include/custombuild.h
r8987 r9156 123 123 void WIN32API SetCustomFullScreenMode(DWORD dwWidth, DWORD dwHeight, DWORD dwBPP); 124 124 125 //Force DirectSurface Lock & Unlock methods to hide & show the mouse cursor 126 BOOL WIN32API SetCustomHideCursorOnLock(BOOL state); 127 125 128 #endif /*__CUSTOMBUILD_H__*/ 126 129  - 
      
trunk/src/ddraw/OS2DDRAW.CPP
r8989 r9156 1 /* $Id: OS2DDRAW.CPP,v 1.3 6 2002-08-12 15:06:21sandervl Exp $ */1 /* $Id: OS2DDRAW.CPP,v 1.37 2002-08-28 08:20:04 sandervl Exp $ */ 2 2 3 3 /* … … 46 46 47 47 48 BOOL bUseFSDD = FALSE; 49 BOOL fNoFSDD = FALSE; 48 BOOL bUseFSDD = FALSE; 49 BOOL fNoFSDD = FALSE; 50 BOOL fHideCursorOnLock = FALSE; 50 51 51 52 FOURCC SupportedFourCCs[] = {FOURCC_SCRN,FOURCC_LUT8,FOURCC_R565,FOURCC_RGB3,FOURCC_RGB4}; … … 68 69 ModesDive[0].iRatio = 0; 69 70 fNoFSDD = TRUE; 71 } 72 //****************************************************************************** 73 //Force DirectSurface Lock & Unlock methods to hide & show the mouse cursor 74 //****************************************************************************** 75 BOOL WIN32API SetCustomHideCursorOnLock(BOOL state) 76 { 77 BOOL preState = fHideCursorOnLock; 78 fHideCursorOnLock = state; 79 return preState; 70 80 } 71 81 //******************************************************************************  - 
      
trunk/src/ddraw/OS2DDRAW.H
r8604 r9156 1 /* $Id: OS2DDRAW.H,v 1.1 6 2002-06-08 13:12:33sandervl Exp $ */1 /* $Id: OS2DDRAW.H,v 1.17 2002-08-28 08:20:05 sandervl Exp $ */ 2 2 3 3 /* … … 219 219 #define FOURCC_UYVY mmioFOURCC( 'U', 'Y', 'V', 'Y' ) 220 220 221 extern BOOL fHideCursorOnLock; 222 221 223 #endif  - 
      
trunk/src/ddraw/OS2SURFACE.CPP
r8830 r9156 1 /* $Id: OS2SURFACE.CPP,v 1.4 6 2002-07-03 15:44:37sandervl Exp $ */1 /* $Id: OS2SURFACE.CPP,v 1.47 2002-08-28 08:20:05 sandervl Exp $ */ 2 2 3 3 /* … … 4890 4890 #endif 4891 4891 me->fLocked = TRUE; 4892 4893 if(me->diveBufNr == DIVE_BUFFER_SCREEN) 4894 { 4895 //If fHideCursorOnLock is set, then we hide the cursor to prevent 4896 //the app from corruption the mouse cursor (color/animated pointers) 4897 if(fHideCursorOnLock) ShowCursor(FALSE); 4898 } 4892 4899 } 4893 4900 … … 5334 5341 5335 5342 rc = DD_OK; 5343 5344 if(me->diveBufNr == DIVE_BUFFER_SCREEN) 5345 { 5346 //If fHideCursorOnLock is set, then we hide the cursor to prevent in SurfLock4 5347 //the app from corruption the mouse cursor (color/animated pointers) 5348 //We need to show it again here 5349 if(fHideCursorOnLock) ShowCursor(TRUE); 5350 } 5336 5351 } 5337 5352 … … 5441 5456 dprintf(("DDRAW: Unlock OK\n\n")); 5442 5457 rc = DD_OK; 5443 5444 5458 } 5445 5459  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  