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

Added workaround for handling black & white cursors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.