Changeset 99839 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- May 18, 2023 10:21:44 AM (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMouseHandler.cpp
r99479 r99839 1298 1298 /* Choose the largest rectangle: */ 1299 1299 QRect largestRect; 1300 foreach (const QRect &rect, viewportRegion.rects()) 1300 for (QRegion::const_iterator it = viewportRegion.begin(); it != viewportRegion.end(); ++it) 1301 { 1302 const QRect rect = *it; 1301 1303 largestRect = largestRect.width() * largestRect.height() < rect.width() * rect.height() ? rect : largestRect; 1304 } 1302 1305 /* Assign the partial-viewport-region to the largest rect: */ 1303 1306 viewportRegion = largestRect;
Note:
See TracChangeset
for help on using the changeset viewer.