瀏覽代碼

win-capture: Fix bug initializing via d3d9 swap

Apparently neglected to use the reference operator.  I think this may
partially be one of the reasons why many developers still choose to use
pointers instead of references, but fortunately an actual GOOD compiler
warns about this (aka anything but vc)
jp9000 11 年之前
父節點
當前提交
f8c7df2616
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      plugins/win-capture/graphics-hook/d3d9-capture.cpp

+ 1 - 1
plugins/win-capture/graphics-hook/d3d9-capture.cpp

@@ -425,7 +425,7 @@ static bool d3d9_init_format_backbuffer(uint32_t &cx, uint32_t &cy,
 	return true;
 }
 
-static bool d3d9_init_format_swapchain(uint32_t cx, uint32_t cy, HWND window)
+static bool d3d9_init_format_swapchain(uint32_t &cx, uint32_t &cy, HWND &window)
 {
 	D3DPRESENT_PARAMETERS pp;