VirtualBox

Changeset 91764 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Oct 15, 2021 2:30:44 PM (3 years ago)
Author:
vboxsync
Message:

3D/VMSVGA: Coding style fixes for r147535, bugref:10120

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxDispIf.cpp

    r91763 r91764  
    17821782
    17831783    /* SetDisplayConfig assumes the top-left corner of a primary display at (0, 0) position */
    1784     const VMMDevDisplayDef* paDispDefPrimary = NULL;
     1784    const VMMDevDisplayDef* pDispDefPrimary = NULL;
    17851785
    17861786    for (i = 0; i < cDispDef; ++i)
     
    17881788        pDispDef = &paDispDef[i];
    17891789
    1790         if (RT_BOOL(pDispDef->fDisplayFlags & VMMDEV_DISPLAY_PRIMARY))
    1791         {
    1792             paDispDefPrimary = pDispDef;
     1790        if (pDispDef->fDisplayFlags & VMMDEV_DISPLAY_PRIMARY)
     1791        {
     1792            pDispDefPrimary = pDispDef;
    17931793            break;
    17941794        }
     
    18901890                if (pDispDef->fDisplayFlags & VMMDEV_DISPLAY_ORIGIN)
    18911891                {
    1892                     pSrcMode->position.x = pDispDef->xOrigin - (paDispDefPrimary ? paDispDefPrimary->xOrigin : 0);
    1893                     pSrcMode->position.y = pDispDef->yOrigin - (paDispDefPrimary ? paDispDefPrimary->yOrigin : 0);
     1892                    pSrcMode->position.x = pDispDef->xOrigin - (pDispDefPrimary ? pDispDefPrimary->xOrigin : 0);
     1893                    pSrcMode->position.y = pDispDef->yOrigin - (pDispDefPrimary ? pDispDefPrimary->yOrigin : 0);
    18941894                }
    18951895
     
    19941994                if (pDispDef->fDisplayFlags & VMMDEV_DISPLAY_ORIGIN)
    19951995                {
    1996                     pSrcModeInfo->sourceMode.position.x = pDispDef->xOrigin - (paDispDefPrimary ? paDispDefPrimary->xOrigin : 0);
    1997                     pSrcModeInfo->sourceMode.position.y = pDispDef->yOrigin - (paDispDefPrimary ? 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);
    19981998                }
    19991999
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