VirtualBox

Changeset 84612 in vbox


Ignore:
Timestamp:
May 29, 2020 2:52:26 PM (5 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9742: UISession: align the mouse cursor dimensions to 32 pixels on Windows hosts

File:
1 edited

Legend:

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

    r82968 r84612  
    16801680    // Qt5 QCursor recommends 32 x 32 cursor, therefore the original data is copied to
    16811681    // a larger QImage if necessary. Cursors like 10x16 did not work correctly (Solaris 10 guest).
    1682     const uint uCursorWidth = uWidth >= 32 ? uWidth : 32;
    1683     const uint uCursorHeight = uHeight >= 32 ? uHeight : 32;
     1682    // Align the cursor dimensions to 32 bit pixels, because for example a 56x56 monochrome cursor
     1683    // did not work correctly on Windows host.
     1684    const uint uCursorWidth = RT_ALIGN_32(uWidth, 32);
     1685    const uint uCursorHeight = RT_ALIGN_32(uHeight, 32);
    16841686
    16851687    if (fHasAlpha)
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