Changeset 52904 in vbox
- Timestamp:
- Sep 30, 2014 5:41:01 PM (10 years ago)
- svn:sync-xref-src-repo-rev:
- 96335
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIFrameBuffer.cpp
r52903 r52904 274 274 STDMETHODIMP UIFrameBuffer::NotifyUpdate(ULONG uX, ULONG uY, ULONG uWidth, ULONG uHeight) 275 275 { 276 /* Retina screens with physical-to-logical scaling requires277 * odd/even pixel updates to be taken into account,278 * otherwise we have artifacts on the borders of incoming rectangle. */279 uX = qMax(0, (int)uX - 1);280 uY = qMax(0, (int)uY - 1);281 uWidth = qMin(m_iWidth, (int)uWidth + 2);282 uHeight = qMin(m_iHeight, (int)uHeight + 2);283 284 276 /* Lock access to frame-buffer: */ 285 277 lock(); … … 317 309 ComSafeArrayIn(BYTE, image)) 318 310 { 319 /* Retina screens with physical-to-logical scaling requires320 * odd/even pixel updates to be taken into account,321 * otherwise we have artifacts on the borders of incoming rectangle. */322 uX = qMax(0, (int)uX - 1);323 uY = qMax(0, (int)uY - 1);324 uWidth = qMin(m_iWidth, (int)uWidth + 2);325 uHeight = qMin(m_iHeight, (int)uHeight + 2);326 327 311 /* Wrapping received data: */ 328 312 com::SafeArray<BYTE> imageData(ComSafeArrayInArg(image));
Note:
See TracChangeset
for help on using the changeset viewer.