VirtualBox

Changeset 27992 in vbox


Ignore:
Timestamp:
Apr 5, 2010 7:32:50 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
59698
Message:

wddm: bugfix

Location:
trunk/src/VBox/Additions/WINNT
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Miniport/VBoxVideo.cpp

    r27988 r27992  
    12841284            else
    12851285                Status = STATUS_BUFFER_TOO_SMALL;
     1286
     1287            if (i == (uint32_t)iPreferrableMode)
     1288                iFoundPreferrableMode = cFound;
     1289
    12861290            ++cFound;
    1287 
    1288             if (i == (uint32_t)iPreferrableMode)
    1289                 iFoundPreferrableMode = i;
    1290         }
    1291     }
     1291        }
     1292    }
     1293
     1294    Assert(iFoundPreferrableMode < 0 || cFound > (uint32_t)iFoundPreferrableMode);
     1295
    12921296    *pcModes = cFound;
    12931297    if (piPreferrableMode)
    12941298        *piPreferrableMode = iFoundPreferrableMode;
     1299
    12951300    return Status;
    12961301}
  • trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxTray.h

    r27988 r27992  
    6767{
    6868    VBOXDISPIF_MODE enmMode;
    69 #ifdef VBOXWDDM
    7069    /* with WDDM the approach is to call into WDDM miniport driver via PFND3DKMT API provided by the GDI,
    7170     * The PFND3DKMT is supposed to be used by the OpenGL ICD according to MSDN, so this approach is a bit hacky */
     
    7675            LONG (WINAPI * pfnChangeDisplaySettingsEx)(LPCSTR lpszDeviceName, LPDEVMODE lpDevMode, HWND hwnd, DWORD dwflags, LPVOID lParam);
    7776        } xpdm;
    78 
     77#ifdef VBOXWDDM
    7978        struct
    8079        {
     
    8988            PFND3DKMT_INVALIDATEACTIVEVIDPN pfnD3DKMTInvalidateActiveVidPn;
    9089        } wddm;
     90#endif
    9191    } modeData;
    92 #endif
    9392} VBOXDISPIF, *PVBOXDISPIF;
    9493typedef const struct VBOXDISPIF *PCVBOXDISPIF;
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette