mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-14 17:07:16 +00:00
dxgi/tests: Compile with -D__WINESRC__.
This commit is contained in:
parent
f039251991
commit
22af120a7a
|
@ -1,6 +1,5 @@
|
||||||
TESTDLL = dxgi.dll
|
TESTDLL = dxgi.dll
|
||||||
IMPORTS = dxgi user32
|
IMPORTS = dxgi user32
|
||||||
EXTRADEFS = -U__WINESRC__ -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS
|
|
||||||
|
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
device.c
|
device.c
|
||||||
|
|
|
@ -308,7 +308,7 @@ static void test_createswapchain(IDXGIDevice *device)
|
||||||
IDXGISwapChain *swapchain;
|
IDXGISwapChain *swapchain;
|
||||||
DXGI_SWAP_CHAIN_DESC creation_desc, result_desc;
|
DXGI_SWAP_CHAIN_DESC creation_desc, result_desc;
|
||||||
HRESULT hr;
|
HRESULT hr;
|
||||||
WNDCLASS wc = {0};
|
WNDCLASSA wc = {0};
|
||||||
UINT i;
|
UINT i;
|
||||||
|
|
||||||
const struct refresh_rates refresh_list[] =
|
const struct refresh_rates refresh_list[] =
|
||||||
|
@ -321,10 +321,10 @@ static void test_createswapchain(IDXGIDevice *device)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
wc.lpfnWndProc = DefWindowProc;
|
wc.lpfnWndProc = DefWindowProcA;
|
||||||
wc.lpszClassName = "dxgi_test_wc";
|
wc.lpszClassName = "dxgi_test_wc";
|
||||||
|
|
||||||
RegisterClass(&wc);
|
RegisterClassA(&wc);
|
||||||
|
|
||||||
creation_desc.OutputWindow = 0;
|
creation_desc.OutputWindow = 0;
|
||||||
creation_desc.BufferDesc.Width = 800;
|
creation_desc.BufferDesc.Width = 800;
|
||||||
|
@ -338,7 +338,7 @@ static void test_createswapchain(IDXGIDevice *device)
|
||||||
creation_desc.SampleDesc.Quality = 0;
|
creation_desc.SampleDesc.Quality = 0;
|
||||||
creation_desc.BufferUsage = DXGI_USAGE_RENDER_TARGET_OUTPUT;
|
creation_desc.BufferUsage = DXGI_USAGE_RENDER_TARGET_OUTPUT;
|
||||||
creation_desc.BufferCount = 1;
|
creation_desc.BufferCount = 1;
|
||||||
creation_desc.OutputWindow = CreateWindow("dxgi_test_wc", "dxgi_test", 0, 0, 0, 0, 0, 0, 0, 0, 0);
|
creation_desc.OutputWindow = CreateWindowA("dxgi_test_wc", "dxgi_test", 0, 0, 0, 0, 0, 0, 0, 0, 0);
|
||||||
creation_desc.Windowed = TRUE;
|
creation_desc.Windowed = TRUE;
|
||||||
creation_desc.SwapEffect = DXGI_SWAP_EFFECT_DISCARD;
|
creation_desc.SwapEffect = DXGI_SWAP_EFFECT_DISCARD;
|
||||||
creation_desc.Flags = 0;
|
creation_desc.Flags = 0;
|
||||||
|
|
Loading…
Reference in a new issue