VirtualBox

Ignore:
Timestamp:
Jul 19, 2012 4:06:17 PM (12 years ago)
Author:
vboxsync
Message:

fAnyX basics (not impl for xpdm miniport yet)

File:
1 edited

Legend:

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

    r42224 r42232  
    3333    const VBOXSERVICEENV *pEnv;
    3434
     35    BOOL fAnyX;
     36
    3537    /* ChangeDisplaySettingsEx does not exist in NT. ResizeDisplayDevice uses the function. */
    3638    LONG (WINAPI * pfnChangeDisplaySettingsEx)(LPCTSTR lpszDeviceName, LPDEVMODE lpDevMode, HWND hwnd, DWORD dwflags, LPVOID lParam);
     
    107109    }
    108110
     111    VBOXDISPIFESCAPE_ISANYX IsAnyX = {0};
     112    IsAnyX.EscapeHdr.escapeCode = VBOXESC_ISANYX;
     113    DWORD err = VBoxDispIfEscapeInOut(&pEnv->dispIf, &IsAnyX.EscapeHdr, sizeof (uint32_t));
     114    if (err == NO_ERROR)
     115        gCtx.fAnyX = !!IsAnyX.u32IsAnyX;
     116    else
     117        gCtx.fAnyX = TRUE;
     118
    109119    Log(("VBoxTray: VBoxDisplayInit: Display init successful\n"));
    110120
     
    208218{
    209219    BOOL fModeReset = (Width == 0 && Height == 0 && BitsPerPixel == 0);
     220
     221    if (!gCtx.fAnyX)
     222        Width &= 0xFFF8;
    210223
    211224    DISPLAY_DEVICE DisplayDevice;
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