Changeset 1040
- Timestamp:
 - Sep 25, 1999, 4:11:31 PM (26 years ago)
 - Location:
 - trunk/src/kernel32
 - Files:
 - 
      
- 2 edited
 
- 
          
  cvtcursor.cpp (modified) (3 diffs)
 - 
          
  cvtcursorgrp.cpp (modified) (2 diffs)
 
 
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 $ */ 2 2 3 3 /* … … 62 62 63 63 /* @@@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 */ 65 65 - curHdr->yHotspot; /* subtract hot.y */ 66 66 … … 118 118 else bwsize = bhdr->biSizeImage; 119 119 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); 122 123 123 124 *os2size = cursorsize;  - 
      
trunk/src/kernel32/cvtcursorgrp.cpp
r1036 r1040 1 /* $Id: cvtcursorgrp.cpp,v 1. 5 1999-09-24 22:47:00sandervl Exp $ */1 /* $Id: cvtcursorgrp.cpp,v 1.6 1999-09-25 14:11:31 sandervl Exp $ */ 2 2 3 3 /* … … 75 75 76 76 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)); 78 78 79 79 if(os2cursor == NULL) {  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  