Changeset 1040 for trunk/src/kernel32/cvtcursor.cpp
- Timestamp:
- Sep 25, 1999, 4:11:31 PM (26 years ago)
- File:
-
- 1 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 $ */ 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;
Note:
See TracChangeset
for help on using the changeset viewer.