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/OS2DDRAW.CPP

    r8989 r9156  
    1 /* $Id: OS2DDRAW.CPP,v 1.36 2002-08-12 15:06:21 sandervl Exp $ */
     1/* $Id: OS2DDRAW.CPP,v 1.37 2002-08-28 08:20:04 sandervl Exp $ */
    22
    33/*
     
    4646
    4747
    48 BOOL bUseFSDD = FALSE;
    49 BOOL fNoFSDD = FALSE;
     48BOOL bUseFSDD          = FALSE;
     49BOOL fNoFSDD           = FALSE;
     50BOOL fHideCursorOnLock = FALSE;
    5051
    5152FOURCC SupportedFourCCs[]   = {FOURCC_SCRN,FOURCC_LUT8,FOURCC_R565,FOURCC_RGB3,FOURCC_RGB4};
     
    6869    ModesDive[0].iRatio = 0;
    6970    fNoFSDD = TRUE;
     71}
     72//******************************************************************************
     73//Force DirectSurface Lock & Unlock methods to hide & show the mouse cursor
     74//******************************************************************************
     75BOOL WIN32API SetCustomHideCursorOnLock(BOOL state)
     76{
     77    BOOL preState = fHideCursorOnLock;
     78    fHideCursorOnLock = state;
     79    return preState;
    7080}
    7181//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.