More CXX_BUILD fixes

This commit is contained in:
twinaphex 2021-03-22 15:20:51 +01:00
parent 81e768435b
commit 611efea2bf
3 changed files with 3 additions and 3 deletions

View File

@ -1567,7 +1567,7 @@ void win32_clip_window(bool state)
if (state && main_window.hwnd)
{
PWINDOWINFO info;
info = malloc(sizeof(*info));
info = (PWINDOWINFO)malloc(sizeof(*info));
info->cbSize = sizeof(PWINDOWINFO);
if (GetWindowInfo(main_window.hwnd, info))

View File

@ -608,7 +608,7 @@ static bool d3d10_init_swapchain(d3d10_video_t *d3d10,
desc.BufferDesc.RefreshRate.Denominator = 1;
desc.BufferUsage = DXGI_USAGE_RENDER_TARGET_OUTPUT;
#ifdef HAVE_WINDOW
desc.OutputWindow = corewindow;
desc.OutputWindow = (HWND)corewindow;
#endif
desc.SampleDesc.Count = 1;
desc.SampleDesc.Quality = 0;

View File

@ -661,7 +661,7 @@ static bool d3d11_init_swapchain(d3d11_video_t* d3d11,
#endif
desc.BufferUsage = DXGI_USAGE_RENDER_TARGET_OUTPUT;
#ifdef HAVE_WINDOW
desc.OutputWindow = corewindow;
desc.OutputWindow = (HWND)corewindow;
#endif
desc.SampleDesc.Count = 1;
desc.SampleDesc.Quality = 0;