- Timestamp:
- Jan 18, 2022 11:23:59 AM (3 years ago)
- Location:
- trunk/src/VBox/Additions/WINNT
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/gallium/GaDxva.cpp
r93115 r93299 597 597 AssertReturn(pSrcRect->bottom > pSrcRect->top, S_OK); 598 598 599 float const cSrcWidth = pVideoProcessDevice->VideoDesc.SampleWidth;599 float const cSrcWidth = pVideoProcessDevice->VideoDesc.SampleWidth; 600 600 float const cSrcHeight = pVideoProcessDevice->VideoDesc.SampleHeight; 601 601 602 float const uSrcLeft = pSrcRect->left/cSrcWidth;603 float const uSrcRight = pSrcRect->right/cSrcWidth;604 float const vSrcTop = pSrcRect->top/cSrcHeight;605 float const vSrcBottom = pSrcRect->bottom/cSrcHeight;602 float const uSrcLeft = (float)pSrcRect->left / cSrcWidth; 603 float const uSrcRight = (float)pSrcRect->right / cSrcWidth; 604 float const vSrcTop = (float)pSrcRect->top / cSrcHeight; 605 float const vSrcBottom = (float)pSrcRect->bottom / cSrcHeight; 606 606 607 607 /* Subtract 0.5 to line up the pixel centers with texels 608 608 * https://docs.microsoft.com/en-us/windows/win32/direct3d9/directly-mapping-texels-to-pixels 609 609 */ 610 float const xDstLeft = pDstRect->left- 0.5f;611 float const xDstRight = pDstRect->right- 0.5f;612 float const yDstTop = pDstRect->top- 0.5f;613 float const yDstBottom = pDstRect->bottom - 0.5f;610 float const xDstLeft = (float)pDstRect->left - 0.5f; 611 float const xDstRight = (float)pDstRect->right - 0.5f; 612 float const yDstTop = (float)pDstRect->top - 0.5f; 613 float const yDstBottom = (float)pDstRect->bottom - 0.5f; 614 614 615 615 Vertex const aVertices[] = -
trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/shared/VBoxDispKmt.cpp
r93115 r93299 272 272 if (f || EnumAdapters.Adapters[i].NumOfSources) 273 273 { 274 D3DKMT_OPENADAPTERFROMLUID OpenAdapterData = { 0};274 D3DKMT_OPENADAPTERFROMLUID OpenAdapterData = {{0}}; 275 275 OpenAdapterData.AdapterLuid = EnumAdapters.Adapters[i].AdapterLuid; 276 276 Status = pCallbacks->pfnD3DKMTOpenAdapterFromLuid(&OpenAdapterData); 277 277 #ifdef DEBUG_misha 278 278 Assert(!Status); 279 279 #endif 280 280 if (NT_SUCCESS(Status)) 281 281 { -
trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/shared/VBoxDispMpLogger.cpp
r93115 r93299 52 52 } VBOXDISPMPLOGGER, *PVBOXDISPMPLOGGER; 53 53 54 static VBOXDISPMPLOGGER g_VBoxDispMpLogger = { 0};54 static VBOXDISPMPLOGGER g_VBoxDispMpLogger = { {0}, VBOXDISPMPLOGGER_STATE_UNINITIALIZED }; 55 55 56 56 static PVBOXDISPMPLOGGER vboxDispMpLoggerGet() -
trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/common/VBoxMPVidModes.cpp
r93115 r93299 26 26 27 27 /* Custom video modes which are being read from registry at driver startup. */ 28 static VIDEO_MODE_INFORMATION g_CustomVideoModes[VBOX_VIDEO_MAX_SCREENS] = { 0};28 static VIDEO_MODE_INFORMATION g_CustomVideoModes[VBOX_VIDEO_MAX_SCREENS] = { {0} }; 29 29 30 30 static BOOLEAN -
trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/xpdm/VBoxMPDriver.cpp
r93115 r93299 34 34 * Global Variables * 35 35 *********************************************************************************************************************************/ 36 /* Resource list*/36 /** Legacy VGA resource list. */ 37 37 static VIDEO_ACCESS_RANGE g_aVBoxLegacyVGAResources[] = 38 38 { 39 { 0x000003B0, 0x00000000, 0x0000000C, 1, 1, 1, 0 }, /* VGA regs (0x3B0-0x3BB) */ 40 { 0x000003C0, 0x00000000, 0x00000020, 1, 1, 1, 0 }, /* VGA regs (0x3C0-0x3DF) */ 41 { 0x000A0000, 0x00000000, 0x00020000, 0, 0, 1, 0 }, /* Frame buffer (0xA0000-0xBFFFF) */ 39 /* RangeStart Length I V S P 40 n i h a 41 I s a s 42 o i r s 43 S b a i 44 p l b v 45 a e l e 46 c e 47 e */ 48 { {0x000003B0, 0x00000000}, 0x0000000C, 1, 1, 1, 0 }, /* VGA regs (0x3B0-0x3BB) */ 49 { {0x000003C0, 0x00000000}, 0x00000020, 1, 1, 1, 0 }, /* VGA regs (0x3C0-0x3DF) */ 50 { {0x000A0000, 0x00000000}, 0x00020000, 0, 0, 1, 0 }, /* Frame buffer (0xA0000-0xBFFFF) */ 42 51 }; 43 52 -
trunk/src/VBox/Additions/WINNT/VBoxCredProv/VBoxCredentialProvider.h
r93115 r93299 81 81 { 82 82 /** The user's profile image (tile). */ 83 { { VBOXCREDPROV_FIELDID_TILEIMAGE, CPFT_TILE_IMAGE, L"Tile Image", 0,}, CPFS_DISPLAY_IN_BOTH, CPFIS_NONE },83 { { VBOXCREDPROV_FIELDID_TILEIMAGE, CPFT_TILE_IMAGE, L"Tile Image", {0} }, CPFS_DISPLAY_IN_BOTH, CPFIS_NONE }, 84 84 { { VBOXCREDPROV_FIELDID_USERNAME, CPFT_LARGE_TEXT, L"Username", CPFG_LOGON_USERNAME }, CPFS_DISPLAY_IN_BOTH, CPFIS_NONE }, 85 85 { { VBOXCREDPROV_FIELDID_PASSWORD, CPFT_PASSWORD_TEXT, L"Password", CPFG_LOGON_PASSWORD }, CPFS_DISPLAY_IN_SELECTED_TILE, CPFIS_FOCUSED }, 86 { { VBOXCREDPROV_FIELDID_DOMAINNAME, CPFT_LARGE_TEXT, L"", 0}, CPFS_DISPLAY_IN_SELECTED_TILE, CPFIS_FOCUSED },87 { { VBOXCREDPROV_FIELDID_SUBMIT_BUTTON, CPFT_SUBMIT_BUTTON, L"Submit", 0}, CPFS_DISPLAY_IN_SELECTED_TILE, CPFIS_FOCUSED },86 { { VBOXCREDPROV_FIELDID_DOMAINNAME, CPFT_LARGE_TEXT, L"", {0} }, CPFS_DISPLAY_IN_SELECTED_TILE, CPFIS_FOCUSED }, 87 { { VBOXCREDPROV_FIELDID_SUBMIT_BUTTON, CPFT_SUBMIT_BUTTON, L"Submit", {0} }, CPFS_DISPLAY_IN_SELECTED_TILE, CPFIS_FOCUSED }, 88 88 /** New since Windows 8: The image used to represent a credential provider on the logon page. */ 89 89 { { VBOXCREDPROV_FIELDID_PROVIDER_LOGO, CPFT_TILE_IMAGE, L"Provider Logo", CPFG_CREDENTIAL_PROVIDER_LOGO }, CPFS_HIDDEN /* Not used yet. */, CPFIS_NONE }, -
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxDispIf.cpp
r93115 r93299 1423 1423 { 1424 1424 DWORD winEr = ERROR_SUCCESS; 1425 VBOXDISPIFESCAPE_UPDATEMODES EscData = { 0};1425 VBOXDISPIFESCAPE_UPDATEMODES EscData = {{0}}; 1426 1426 EscData.EscapeHdr.escapeCode = VBOXESC_UPDATEMODES; 1427 1427 EscData.u32TargetId = u32TargetId; -
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxDisplay.cpp
r93115 r93299 152 152 if (RT_SUCCESS(rc)) 153 153 { 154 VBOXDISPIFESCAPE_ISANYX IsAnyX = { 0};154 VBOXDISPIFESCAPE_ISANYX IsAnyX = { {0} }; 155 155 IsAnyX.EscapeHdr.escapeCode = VBOXESC_ISANYX; 156 156 DWORD err = VBoxDispIfEscapeInOut(&pEnv->dispIf, &IsAnyX.EscapeHdr, sizeof(uint32_t)); -
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxDnD.cpp
r93115 r93299 1553 1553 int iScreenY = GetSystemMetrics(SM_CYSCREEN) - 1; 1554 1554 1555 INPUT Input[1] = { 0};1555 INPUT Input[1] = { {0} }; 1556 1556 Input[0].type = INPUT_MOUSE; 1557 1557 Input[0].mi.dwFlags = MOUSEEVENTF_MOVE | MOUSEEVENTF_ABSOLUTE … … 1599 1599 /* Release mouse button in the guest to start the "drop" 1600 1600 * action at the current mouse cursor position. */ 1601 INPUT Input[1] = { 0};1601 INPUT Input[1] = { {0} }; 1602 1602 Input[0].type = INPUT_MOUSE; 1603 1603 Input[0].mi.dwFlags = MOUSEEVENTF_LEFTUP;
Note:
See TracChangeset
for help on using the changeset viewer.