Changeset 7107 for trunk/src


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

OSLibWinCreatePointer fix for cursors

Location:
trunk/src/user32
Files:
2 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
  • trunk/src/user32/win32wbase.cpp

    r7097 r7107  
    1 /* $Id: win32wbase.cpp,v 1.292 2001-10-17 15:16:57 phaller Exp $ */
     1/* $Id: win32wbase.cpp,v 1.293 2001-10-18 11:02:22 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    36363636                dprintf(("SetWindowLong GWL_STYLE %x old %x new style %x (%x)", getWindowHandle(), dwStyle, value));
    36373637#ifdef DEBUG
    3638                 if((value & WS_CHILD) != (dwStyle & WS_CHILD)) {
    3639                     DebugInt3(); //is this allowed?
    3640                 }
     3638//                if((value & WS_CHILD) != (dwStyle & WS_CHILD)) {
     3639//                    DebugInt3(); //is this allowed?
     3640//                }
    36413641#endif
    36423642                value &= ~(WS_CHILD);
Note: See TracChangeset for help on using the changeset viewer.