Changeset 1040 for trunk/src


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

Cursor(group) fixes

Location:
trunk/src/kernel32
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/cvtcursor.cpp

    r1036 r1040  
    1 /* $Id: cvtcursor.cpp,v 1.4 1999-09-24 22:47:00 sandervl Exp $ */
     1/* $Id: cvtcursor.cpp,v 1.5 1999-09-25 14:11:30 sandervl Exp $ */
    22
    33/*
     
    6262
    6363  /* @@@PH y-hotspot is upside down ! */
    64   cursorhdr->yHotspot      = (bhdr->biHeight >> 1) - 1       /* height div 2 */
     64  cursorhdr->yHotspot      = (bhdr->biHeight >> 1)       /* height div 2 */
    6565                             - curHdr->yHotspot;         /* subtract hot.y */
    6666
     
    118118  else    bwsize = bhdr->biSizeImage;
    119119
    120   //write XOR and AND mask
    121   memcpy((char *)os2rgb, (char *)rgb, bwsize);
     120  //write XOR and AND mask in reversed order (Win32 XOR-AND, PM AND-XOR)
     121  memcpy((char *)os2rgb, (char *)rgb+bwsize/2, bwsize/2);
     122  memcpy((char *)os2rgb+bwsize/2, (char *)rgb, bwsize/2);
    122123
    123124  *os2size = cursorsize;
  • trunk/src/kernel32/cvtcursorgrp.cpp

    r1036 r1040  
    1 /* $Id: cvtcursorgrp.cpp,v 1.5 1999-09-24 22:47:00 sandervl Exp $ */
     1/* $Id: cvtcursorgrp.cpp,v 1.6 1999-09-25 14:11:31 sandervl Exp $ */
    22
    33/*
     
    7575
    7676        cursorhdr = (CursorComponent *)winres->lockResource();
    77         os2cursor = ConvertCursor(cursorhdr, winres->getSize(), &os2cursorsize, (int)bafh - (int)orgbafh + sizeof(BITMAPARRAYFILEHEADER2)-sizeof(BITMAPFILEHEADER));
     77        os2cursor = ConvertCursor(cursorhdr, winres->getSize(), &os2cursorsize, (int)bafh - (int)orgbafh + sizeof(BITMAPARRAYFILEHEADER2)-sizeof(BITMAPFILEHEADER2));
    7878
    7979        if(os2cursor == NULL) {
Note: See TracChangeset for help on using the changeset viewer.