VirtualBox

source: vbox/trunk/src/libs/dxvk-2.3.1/include/native/wsi/native_headless.h

最後變更 在這個檔案是 105107,由 vboxsync 提交於 9 月 前

libs/dxvk-2.3.1: Make it build, bugref:10716

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 572 位元組
 
1#include <windows.h>
2
3namespace dxvk::wsi {
4
5 inline void* fromHwnd(HWND hWindow) {
6 return reinterpret_cast<void*>(hWindow);
7 }
8
9 inline HWND toHwnd(void* pWindow) {
10 return reinterpret_cast<HWND>(pWindow);
11 }
12
13 // Offset so null HMONITORs go to -1
14 inline int32_t fromHmonitor(HMONITOR hMonitor) {
15 return static_cast<int32_t>(reinterpret_cast<intptr_t>(hMonitor)) - 1;
16 }
17
18 // Offset so -1 display id goes to 0 == NULL
19 inline HMONITOR toHmonitor(int32_t displayId) {
20 return reinterpret_cast<HMONITOR>(static_cast<intptr_t>(displayId + 1));
21 }
22
23}
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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