Changeset 91764 in vbox for trunk/src/VBox/Additions
- Timestamp:
- Oct 15, 2021 2:30:44 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxDispIf.cpp
r91763 r91764 1782 1782 1783 1783 /* SetDisplayConfig assumes the top-left corner of a primary display at (0, 0) position */ 1784 const VMMDevDisplayDef* p aDispDefPrimary = NULL;1784 const VMMDevDisplayDef* pDispDefPrimary = NULL; 1785 1785 1786 1786 for (i = 0; i < cDispDef; ++i) … … 1788 1788 pDispDef = &paDispDef[i]; 1789 1789 1790 if ( RT_BOOL(pDispDef->fDisplayFlags & VMMDEV_DISPLAY_PRIMARY))1791 { 1792 p aDispDefPrimary = pDispDef;1790 if (pDispDef->fDisplayFlags & VMMDEV_DISPLAY_PRIMARY) 1791 { 1792 pDispDefPrimary = pDispDef; 1793 1793 break; 1794 1794 } … … 1890 1890 if (pDispDef->fDisplayFlags & VMMDEV_DISPLAY_ORIGIN) 1891 1891 { 1892 pSrcMode->position.x = pDispDef->xOrigin - (p aDispDefPrimary ? paDispDefPrimary->xOrigin : 0);1893 pSrcMode->position.y = pDispDef->yOrigin - (p aDispDefPrimary ? paDispDefPrimary->yOrigin : 0);1892 pSrcMode->position.x = pDispDef->xOrigin - (pDispDefPrimary ? pDispDefPrimary->xOrigin : 0); 1893 pSrcMode->position.y = pDispDef->yOrigin - (pDispDefPrimary ? pDispDefPrimary->yOrigin : 0); 1894 1894 } 1895 1895 … … 1994 1994 if (pDispDef->fDisplayFlags & VMMDEV_DISPLAY_ORIGIN) 1995 1995 { 1996 pSrcModeInfo->sourceMode.position.x = pDispDef->xOrigin - (p aDispDefPrimary ? paDispDefPrimary->xOrigin : 0);1997 pSrcModeInfo->sourceMode.position.y = pDispDef->yOrigin - (p aDispDefPrimary ? paDispDefPrimary->yOrigin : 0);1996 pSrcModeInfo->sourceMode.position.x = pDispDef->xOrigin - (pDispDefPrimary ? pDispDefPrimary->xOrigin : 0); 1997 pSrcModeInfo->sourceMode.position.y = pDispDef->yOrigin - (pDispDefPrimary ? pDispDefPrimary->yOrigin : 0); 1998 1998 } 1999 1999
Note:
See TracChangeset
for help on using the changeset viewer.