VirtualBox

Changeset 108781 in vbox for trunk/src


Ignore:
Timestamp:
Mar 28, 2025 11:56:23 AM (3 weeks ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
168214
Message:

FE/Qt: ticketref:22096: Runtime UI: Adjust masking and coloring for 1bpp mouse cursor; This patch is provided by JHRobotics.

File:
1 edited

Legend:

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

    r106292 r108781  
    20742074    else
    20752075    {
     2076#if 0 // disabled for public ticket
    20762077        if (isPointer1bpp(pSrcShapePtr, uWidth, uHeight))
    20772078        {
     
    21612162        }
    21622163        else
     2164#endif // disabled for public ticket
    21632165        {
    21642166            /* Assign alpha channel values according to the AND mask: 1 -> 0x00, 0 -> 0xFF: */
     
    21792181
    21802182                    if (u8SrcMaskByte & u8Bit)
    2181                         *pu32DstPixel++ = pu32SrcShapeScanline[x] & UINT32_C(0x00FFFFFF);
     2183                    {
     2184                        /* Inverse cannot be emulated by alpha mask, so make these pixels gray,
     2185                         * to make it visible on both black and white
     2186                         * (this is usually used for text select cursor). */
     2187                        if ((pu32SrcShapeScanline[x] & UINT32_C(0x00FFFFFF)) == UINT32_C(0x00FFFFFF))
     2188                            *pu32DstPixel++ = UINT32_C(0xFF7F7F7F);
     2189                        else
     2190                            *pu32DstPixel++ = pu32SrcShapeScanline[x] & UINT32_C(0x00FFFFFF);
     2191                    }
    21822192                    else
    21832193                        *pu32DstPixel++ = pu32SrcShapeScanline[x] | UINT32_C(0xFF000000);
Note: See TracChangeset for help on using the changeset viewer.

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