Ignore:
Timestamp:
Jul 20, 1999, 7:50:39 PM (26 years ago)
Author:
sandervl
Message:

Fixed icons

File:
1 edited

Legend:

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

    r345 r350  
    1 /* $Id: oslibres.cpp,v 1.1 1999-07-20 15:46:53 sandervl Exp $ */
     1/* $Id: oslibres.cpp,v 1.2 1999-07-20 17:50:39 sandervl Exp $ */
    22/*
    33 * Window API wrappers for OS/2
     
    6363    if(hIcon == 0) {
    6464            //skip xor/and mask
    65             bfh = (BITMAPFILEHEADER2 *)((char *)&bafh->bfh2 + sizeof(RGB)*2 + sizeof(BITMAPFILEHEADER2));
     65            bfh = (BITMAPFILEHEADER2 *)((char *)&bafh->bfh2 + sizeof(RGB2)*2 + sizeof(BITMAPFILEHEADER2));
    6666            hps = WinGetPS(hwnd);
    6767            hbmColor = GpiCreateBitmap(hps, &bfh->bmp2, CBM_INIT,
     
    9696    }
    9797    WinSendMsg(hwnd, WM_SETICON, (MPARAM)hIcon, 0);
    98 //    if(WinSetPointer(hwnd, hIcon) == FALSE) {
    99 //      dprintf(("WinSetPointer %x %x failed with error %x!", hwnd, hIcon, WinGetLastError(GetThreadHAB())));
    100 //  }
    10198    WinReleasePS(hps);
    10299    return hIcon;
Note: See TracChangeset for help on using the changeset viewer.