From f435d192e1ebd0e678c936b328daf3faab3cc47f Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Sat, 20 May 2023 03:01:03 +0900 Subject: [PATCH] d3d11videosink: Don't use CS_OWNDC style It's completely unnecessary since we never use the device context (e.g., BeginPaint() or GetDC() never called). Part-of: --- subprojects/gst-plugins-bad/sys/d3d11/gstd3d11window_win32.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11window_win32.cpp b/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11window_win32.cpp index bd2eaa43c5..05d65b358a 100644 --- a/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11window_win32.cpp +++ b/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11window_win32.cpp @@ -578,7 +578,7 @@ gst_d3d11_window_win32_create_internal_window (GstD3D11WindowWin32 * self) wc.lpfnWndProc = window_proc; wc.hInstance = hinstance; wc.hIcon = LoadIcon (NULL, IDI_WINLOGO); - wc.style = CS_OWNDC | CS_HREDRAW | CS_VREDRAW | CS_DBLCLKS; + wc.style = CS_HREDRAW | CS_VREDRAW | CS_DBLCLKS; wc.hCursor = LoadCursor (NULL, IDC_ARROW); wc.hbrBackground = (HBRUSH) GetStockObject (BLACK_BRUSH); wc.lpszClassName = "GSTD3D11";