Ignore:
Timestamp:
Oct 18, 2001, 1:02:22 PM (24 years ago)
Author:
sandervl
Message:

OSLibWinCreatePointer fix for cursors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/oslibres.cpp

    r7079 r7107  
    1 /* $Id: oslibres.cpp,v 1.26 2001-10-16 14:49:46 sandervl Exp $ */
     1/* $Id: oslibres.cpp,v 1.27 2001-10-18 11:02:22 sandervl Exp $ */
    22/*
    33 * Window API wrappers for OS/2
     
    281281    HAB hab;
    282282
     283    dprintf2(("Convert color bitmap to mono (%d,%d) %d", pBmpDest->cx, pBmpDest->cy, pBmpDest->cBitCount));
     284
    283285    hab = GetThreadHAB();
    284286
     
    445447                goto fail;
    446448        }
    447         if(pXorBmp->bmBitsPixel >= 8)
     449        if(fCursor && pXorBmp->bmBitsPixel >= 8)
    448450        {
    449451            if(isMonoBitmap(pXorBmp, (PBYTE)os2rgb) == TRUE)
     
    504506    }
    505507
    506     pointerInfo.fPointer   = !fCursor; //TRUE = icon
     508    pointerInfo.fPointer   = fCursor; //FALSE = icon
    507509    pointerInfo.xHotspot   = pInfo->ptHotSpot.x;
    508510    pointerInfo.yHotspot   = mapY(pInfo->nHeight, pInfo->ptHotSpot.y);
    509511    pointerInfo.hbmColor   = hbmColor;
    510512    pointerInfo.hbmPointer = hbmMask;
     513    dprintf2(("WinCreatePointerIndirect %d (%d,%d) (org %d,%d)", pointerInfo.fPointer, pointerInfo.xHotspot, pointerInfo.yHotspot, pInfo->ptHotSpot.x, pInfo->ptHotSpot.y));
    511514    hPointer = WinCreatePointerIndirect(HWND_DESKTOP, &pointerInfo);
    512515
Note: See TracChangeset for help on using the changeset viewer.