Ignore:
Timestamp:
Sep 25, 1999, 4:18:12 PM (26 years ago)
Author:
sandervl
Message:

Cursor fixes + minor change to RedrawWindow

File:
1 edited

Legend:

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

    r1036 r1042  
    1 /* $Id: oslibres.cpp,v 1.3 1999-09-24 22:45:26 sandervl Exp $ */
     1/* $Id: oslibres.cpp,v 1.4 1999-09-25 14:16:05 sandervl Exp $ */
    22/*
    33 * Window API wrappers for OS/2
     
    145145
    146146    if(cursorbitmap == NULL) {
    147         dprintf(("OSLibWinCreatePointer cursorbitmap == NULL!!"));
    148         return 0;
     147        dprintf(("OSLibWinCreatePointer cursorbitmap == NULL!!"));
     148        return 0;
    149149    }
    150150    if(bafh->usType == BFT_BITMAPARRAY && bafh->cbSize == sizeof(BITMAPARRAYFILEHEADER2)) {
    151         bfh  = &bafh->bfh2;
     151        bfh  = &bafh->bfh2;
    152152    }
    153153    else {//single icon
    154         bfh  = (BITMAPFILEHEADER2 *)cursorbitmap;
    155         bafh = (BITMAPARRAYFILEHEADER2 *)bfh; //for calculation bitmap offset
     154        bfh  = (BITMAPFILEHEADER2 *)cursorbitmap;
     155    bafh = (BITMAPARRAYFILEHEADER2 *)bfh; //for calculation bitmap offset
    156156    }
    157157    //skip xor/and mask
     
    172172    pointerInfo.hbmPointer = hbmColor;
    173173    hPointer = WinCreatePointerIndirect(HWND_DESKTOP, &pointerInfo);
     174
    174175    if(hPointer == NULL) {
    175176        dprintf(("OSLibWinCreatePointer: WinCreatePointerIndirect failed!"));
     
    186187
    187188    switch(type) {
    188         case IDI_APPLICATION_W:
     189    case IDI_APPLICATION_W:
    189190        os2type = SPTR_PROGRAM;
    190191        break;
     
    214215
    215216    switch(type) {
    216         case IDC_ARROW_W:
     217    case IDC_ARROW_W:
    217218        os2type = SPTR_ARROW;
    218219        break;
    219         case IDC_UPARROW_W:
     220    case IDC_UPARROW_W:
    220221        os2type = SPTR_ARROW;
    221222        break;
    222         case IDC_IBEAM_W:
     223    case IDC_IBEAM_W:
    223224        os2type = SPTR_TEXT;
    224225        break;
    225         case IDC_ICON_W:
     226    case IDC_ICON_W:
    226227        os2type = SPTR_PROGRAM;
    227228        break;
    228         case IDC_NO_W:
     229    case IDC_NO_W:
    229230        os2type = SPTR_ILLEGAL;
    230231        break;
    231         case IDC_CROSS_W:
     232    case IDC_CROSS_W:
    232233        os2type = SPTR_MOVE;
    233234        break;
    234         case IDC_SIZE_W:
     235    case IDC_SIZE_W:
    235236        os2type = SPTR_MOVE;
    236237        break;
    237         case IDC_SIZEALL_W:
     238    case IDC_SIZEALL_W:
    238239        os2type = SPTR_MOVE;
    239240        break;
    240         case IDC_SIZENESW_W:
     241    case IDC_SIZENESW_W:
    241242        os2type = SPTR_SIZENESW;
    242243        break;
    243         case IDC_SIZENS_W:
     244    case IDC_SIZENS_W:
    244245        os2type = SPTR_SIZENS;
    245246        break;
    246         case IDC_SIZENWSE_W:
     247    case IDC_SIZENWSE_W:
    247248        os2type = SPTR_SIZENWSE;
    248249        break;
    249         case IDC_SIZEWE_W:
     250    case IDC_SIZEWE_W:
    250251        os2type = SPTR_SIZEWE;
    251252        break;
    252         case IDC_WAIT_W:
     253    case IDC_WAIT_W:
    253254        os2type = SPTR_WAIT;
    254255        break;
    255         case IDC_APPSTARTING_W:
     256    case IDC_APPSTARTING_W:
    256257        os2type = SPTR_WAIT;
    257258        break;
     
    262263        return 0;
    263264    }
    264     return WinQuerySysPointer(HWND_DESKTOP, os2type, TRUE);
    265 }
    266 //******************************************************************************
    267 //******************************************************************************
     265    //Note: Does not create a copy
     266    return WinQuerySysPointer(HWND_DESKTOP, os2type, FALSE);
     267}
     268//******************************************************************************
     269//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.