VirtualBox

Changeset 108394 in vbox


Ignore:
Timestamp:
Feb 26, 2025 2:23:34 PM (8 weeks ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
167758
Message:

FE/Qt: bugref:10450: Runtime UI: More cleanup for frame-buffer code, a bit of for machine-view code; Limiting painted rectangle similar way; Same sanity check.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/runtime
Files:
2 edited

Legend:

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

    r108393 r108394  
    12651265            default:
    12661266                pSourceImage = new QImage(pSourceImage->scaled(effectiveSize, Qt::IgnoreAspectRatio,
    1267                                                                transformationMode(scalingOptimizationType(), m_dScaleFactor)));
     1267                                                               transformationMode(scalingOptimizationType(), scaleFactor())));
    12681268                break;
    12691269        }
     
    12871287
    12881288    /* Make sure hidpi paint rectangle is within the image boundary: */
    1289     paintRectHiDPI = paintRectHiDPI.intersected(pSourceImage->rect());
     1289    paintRectHiDPI &= pSourceImage->rect();
    12901290    if (paintRectHiDPI.isEmpty())
    12911291        return;
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.cpp

    r108367 r108394  
    808808    /* Limit the resulting part by the viewport rectangle: */
    809809    rect &= viewport()->rect();
     810    if (rect.isEmpty())
     811        return;
    810812
    811813    /* Update corresponding viewport part: */
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