VirtualBox

Changeset 99842 in vbox for trunk


Ignore:
Timestamp:
May 18, 2023 11:06:20 AM (17 months ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10450: Qt6 compatibility bits for QImage stuff; Replacing usage of QImage::byteCount with QString::sizeInBytes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachine.cpp

    r99142 r99842  
    20302030    {
    20312031        QImage image(uCursorWidth, uCursorHeight, QImage::Format_ARGB32);
    2032         memset(image.bits(), 0, image.byteCount());
     2032        memset(image.bits(), 0, image.sizeInBytes());
    20332033
    20342034        const uint32_t *pu32SrcShapeScanline = (uint32_t *)pSrcShapePtr;
     
    20662066            QImage bitmap(uCursorWidth, uCursorHeight, QImage::Format_Mono);
    20672067            bitmap.setColorTable(colors);
    2068             memset(bitmap.bits(), 0xFF, bitmap.byteCount());
     2068            memset(bitmap.bits(), 0xFF, bitmap.sizeInBytes());
    20692069
    20702070            QImage mask(uCursorWidth, uCursorHeight, QImage::Format_Mono);
    20712071            mask.setColorTable(colors);
    2072             memset(mask.bits(), 0xFF, mask.byteCount());
     2072            memset(mask.bits(), 0xFF, mask.sizeInBytes());
    20732073
    20742074            const uint8_t *pu8SrcAndScanline = pSrcAndMaskPtr;
     
    21302130            /* Assign alpha channel values according to the AND mask: 1 -> 0x00, 0 -> 0xFF: */
    21312131            QImage image(uCursorWidth, uCursorHeight, QImage::Format_ARGB32);
    2132             memset(image.bits(), 0, image.byteCount());
     2132            memset(image.bits(), 0, image.sizeInBytes());
    21332133
    21342134            const uint8_t *pu8SrcAndScanline = pSrcAndMaskPtr;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette