Changeset 100085 in vbox
- Timestamp:
- Jun 6, 2023 3:03:19 PM (18 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPWddm.cpp
r98103 r100085 2863 2863 BYTE *pSrc, *pDst, bit; 2864 2864 2865 /* Windows alwaysuses the maximum pointer size VBOXWDDM_C_POINTER_MAX_*2865 /* Windows often uses the maximum pointer size VBOXWDDM_C_POINTER_MAX_* 2866 2866 * Exclude zero pixels (which are transparent anyway) from the right and the bottom of the bitmap. 2867 2867 */ … … 2899 2899 2900 2900 memset(pDst, 0xFF, dstBytesPerLine*pPointerAttributes->Height); 2901 for (y=0; y< pPointerAttributes->Height; ++y)2902 { 2903 for (x=0, bit=7; x< pPointerAttributes->Width; ++x, --bit)2901 for (y=0; y<RT_MIN(pSetPointerShape->Height, pPointerAttributes->Height); ++y) 2902 { 2903 for (x=0, bit=7; x<RT_MIN(pSetPointerShape->Width, pPointerAttributes->Width); ++x, --bit) 2904 2904 { 2905 2905 if (0xFF==bit) bit=7; … … 2917 2917 dstBytesPerLine = pPointerAttributes->Width * 4; 2918 2918 2919 for (y=0; y< pPointerAttributes->Height; ++y)2920 { 2921 memcpy(pDst+y*dstBytesPerLine, pSrc+y*pSetPointerShape->Pitch, dstBytesPerLine);2919 for (y=0; y<RT_MIN(pSetPointerShape->Height, pPointerAttributes->Height); ++y) 2920 { 2921 memcpy(pDst+y*dstBytesPerLine, pSrc+y*pSetPointerShape->Pitch, RT_MIN(dstBytesPerLine, pSetPointerShape->Pitch)); 2922 2922 } 2923 2923
Note:
See TracChangeset
for help on using the changeset viewer.