Ignore:
Timestamp:
Aug 28, 2002, 10:21:48 AM (23 years ago)
Author:
sandervl
Message:

PF: Added custom function to hide mouse cursor when the primary surface (screen) is locked by the app to prevent display corruption with color/animated mouse pointers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/ddraw/OS2SURFACE.CPP

    r8830 r9156  
    1 /* $Id: OS2SURFACE.CPP,v 1.46 2002-07-03 15:44:37 sandervl Exp $ */
     1/* $Id: OS2SURFACE.CPP,v 1.47 2002-08-28 08:20:05 sandervl Exp $ */
    22
    33/*
     
    48904890#endif
    48914891    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    }
    48924899  }
    48934900
     
    53345341
    53355342    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    }
    53365351  }
    53375352
     
    54415456    dprintf(("DDRAW: Unlock OK\n\n"));
    54425457    rc = DD_OK;
    5443 
    54445458  }
    54455459
Note: See TracChangeset for help on using the changeset viewer.