VirtualBox

Changeset 51371 in vbox


Ignore:
Timestamp:
May 23, 2014 2:20:01 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
93874
Message:

FE/Qt: Runtime UI: Yet another try to fix QImage frame-buffer crash: Take into account already shifted paint rectangles.

File:
1 edited

Legend:

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

    r51369 r51371  
    314314
    315315    /* Restrain boundaries: */
    316     int iSubImageWidth = qMin(rect.width(), image.width() - iContentsShiftX);
    317     int iSubImageHeight = qMin(rect.height(), image.height() - iContentsShiftY);
     316    int iSubImageWidth = qMin(rect.width(), image.width() - rect.x() - iContentsShiftX);
     317    int iSubImageHeight = qMin(rect.height(), image.height() - rect.y() - iContentsShiftY);
    318318
    319319    /* Create sub-image (no copy involved): */
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