- Timestamp:
- May 18, 2023 11:06:20 AM (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachine.cpp
r99142 r99842 2030 2030 { 2031 2031 QImage image(uCursorWidth, uCursorHeight, QImage::Format_ARGB32); 2032 memset(image.bits(), 0, image. byteCount());2032 memset(image.bits(), 0, image.sizeInBytes()); 2033 2033 2034 2034 const uint32_t *pu32SrcShapeScanline = (uint32_t *)pSrcShapePtr; … … 2066 2066 QImage bitmap(uCursorWidth, uCursorHeight, QImage::Format_Mono); 2067 2067 bitmap.setColorTable(colors); 2068 memset(bitmap.bits(), 0xFF, bitmap. byteCount());2068 memset(bitmap.bits(), 0xFF, bitmap.sizeInBytes()); 2069 2069 2070 2070 QImage mask(uCursorWidth, uCursorHeight, QImage::Format_Mono); 2071 2071 mask.setColorTable(colors); 2072 memset(mask.bits(), 0xFF, mask. byteCount());2072 memset(mask.bits(), 0xFF, mask.sizeInBytes()); 2073 2073 2074 2074 const uint8_t *pu8SrcAndScanline = pSrcAndMaskPtr; … … 2130 2130 /* Assign alpha channel values according to the AND mask: 1 -> 0x00, 0 -> 0xFF: */ 2131 2131 QImage image(uCursorWidth, uCursorHeight, QImage::Format_ARGB32); 2132 memset(image.bits(), 0, image. byteCount());2132 memset(image.bits(), 0, image.sizeInBytes()); 2133 2133 2134 2134 const uint8_t *pu8SrcAndScanline = pSrcAndMaskPtr;
Note:
See TracChangeset
for help on using the changeset viewer.

