VirtualBox

Changeset 52979 in vbox for trunk


Ignore:
Timestamp:
Oct 8, 2014 7:29:09 AM (10 years ago)
Author:
vboxsync
Message:

IDisplay::GetScreenResolution gcc warning

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/DisplayImpl.cpp

    r52978 r52979  
    14591459    int32_t xOrigin = 0;
    14601460    int32_t yOrigin = 0;
    1461     bool fEnabled = true;
     1461    GuestMonitorStatus_T guestMonitorStatus = GuestMonitorStatus_Enabled;
    14621462
    14631463    if (aScreenId == VBOX_VIDEO_PRIMARY_SCREEN)
     
    14841484        xOrigin = pFBInfo->xOrigin;
    14851485        yOrigin = pFBInfo->yOrigin;
    1486         fEnabled = !RT_BOOL(pFBInfo->flags & VBVA_SCREEN_F_DISABLED);
     1486        if (pFBInfo->flags & VBVA_SCREEN_F_DISABLED)
     1487            guestMonitorStatus = GuestMonitorStatus_Disabled;
    14871488    }
    14881489    else
     
    15021503        *aYOrigin = yOrigin;
    15031504    if (aGuestMonitorStatus)
    1504         *aGuestMonitorStatus = fEnabled? GuestMonitorStatus_Enabled: GuestMonitorStatus_Disabled;
     1505        *aGuestMonitorStatus = guestMonitorStatus;
    15051506
    15061507    return S_OK;
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