Changeset 1036 for trunk/src/kernel32/cvtcursor.cpp
- Timestamp:
- Sep 25, 1999, 12:47:00 AM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/cvtcursor.cpp
r816 r1036 1 /* $Id: cvtcursor.cpp,v 1. 3 1999-09-04 12:41:45sandervl Exp $ */1 /* $Id: cvtcursor.cpp,v 1.4 1999-09-24 22:47:00 sandervl Exp $ */ 2 2 3 3 /* … … 56 56 57 57 cursorhdr = (BITMAPFILEHEADER2 *)malloc(cursorsize); 58 memset(cursorhdr, 0, cursorsize); 58 59 cursorhdr->usType = BFT_POINTER; 59 60 cursorhdr->cbSize = sizeof(BITMAPFILEHEADER2); … … 68 69 69 70 cursorhdr->offBits = sizeof(BITMAPFILEHEADER2) + 2*sizeof(RGB2) + offsetBits; 70 cursorhdr->bmp2.cbFix = sizeof(BITMAPINFOHEADER );71 cursorhdr->bmp2.cbFix = sizeof(BITMAPINFOHEADER2); 71 72 cursorhdr->bmp2.cx = (USHORT)bhdr->biWidth; 72 73 cursorhdr->bmp2.cy = (USHORT)(bhdr->biHeight); 73 74 cursorhdr->bmp2.cPlanes = bhdr->biPlanes; 74 75 cursorhdr->bmp2.cBitCount = bhdr->biBitCount; 76 cursorhdr->bmp2.ulCompression = BCA_UNCOMP; 77 cursorhdr->bmp2.ulColorEncoding = BCE_RGB; 75 78 dprintf(("Cursor size : %d", bhdr->biSizeImage)); 76 79 dprintf(("Cursor Width : %d", bhdr->biWidth));
Note:
See TracChangeset
for help on using the changeset viewer.