Changeset 9624 for trunk/src


Ignore:
Timestamp:
Jan 5, 2003, 5:34:58 PM (23 years ago)
Author:
sandervl
Message:

Added workaround for handling black & white cursors

Location:
trunk/src/user32
Files:
2 edited

Legend:

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

    r9523 r9624  
    1 /* $Id: oslibres.cpp,v 1.33 2002-12-18 12:28:05 sandervl Exp $ */
     1/* $Id: oslibres.cpp,v 1.34 2003-01-05 16:34:58 sandervl Exp $ */
    22/*
    33 * Window API wrappers for OS/2
     
    415415        rgb                         = (RGBQUAD *)(pXorBits);
    416416
     417#if 0
     418        if(pXorBmp->bmBitsPixel == 1) {
     419            os2rgb->bRed = os2rgb->bBlue = os2rgb->bGreen = 0;
     420            os2rgb++;
     421            os2rgb->bRed = os2rgb->bBlue = os2rgb->bGreen = 0xff;
     422            os2rgb++;
     423        }
     424        else
     425#endif
    417426        if(pXorBmp->bmBitsPixel <= 8) {
    418427            for(i=0;i<(1<<pXorBmp->bmBitsPixel);i++) {
  • trunk/src/user32/winicon.cpp

    r9432 r9624  
    1 /* $Id: winicon.cpp,v 1.38 2002-11-26 14:41:07 sandervl Exp $ */
     1/* $Id: winicon.cpp,v 1.39 2003-01-05 16:34:58 sandervl Exp $ */
    22/*
    33 * Win32 Icon Code for OS/2
     
    11111111        return 0;
    11121112    }
    1113 
    11141113    /* Now create the CURSORICONINFO structure */
    11151114    GetObjectA( hXorBits, sizeof(bmpXor), &bmpXor );
    11161115    GetObjectA( hAndBits, sizeof(bmpAnd), &bmpAnd );
    11171116    colortablesize = 0;
     1117
     1118    //SvL: Workaround for problem with B&W cursor XOR bitmaps
     1119    //     End result = inverted PM cursor; not sure what's actually causing
     1120    //     this...
     1121    //     So we let GetDIBits convert the mono cursor to 8bpp
     1122    if(bmpXor.bmBitsPixel == 1)
     1123    {
     1124        bmpXor.bmBitsPixel = 8;
     1125        bmpXor.bmWidthBytes *= 8;
     1126    }
    11181127
    11191128    if(bmpXor.bmBitsPixel <= 8) {
Note: See TracChangeset for help on using the changeset viewer.