summaryrefslogtreecommitdiffstats
path: root/video/out/w32_common.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-12-19 14:17:06 +0100
committerwm4 <wm4@nowhere>2015-12-19 14:19:08 +0100
commit575965a91c65544f10f9b5a2c9181f0bddc81f7a (patch)
treeb6b7938504f875b6fef5418b97a98846b725e146 /video/out/w32_common.c
parenta0519f1d188e3d3be8f0e78a71868d7cbf1cc11d (diff)
downloadmpv-win32-alpha.tar.bz2
mpv-win32-alpha.tar.xz
half-working alpha on windowswin32-alpha
doesn't redraw the "background" properly - compositor bug? http://stackoverflow.com/questions/4052940/how-to-make-an-opengl- rendering-context-with-transparent-background
Diffstat (limited to 'video/out/w32_common.c')
-rw-r--r--video/out/w32_common.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/video/out/w32_common.c b/video/out/w32_common.c
index 025b744838..463696cc8a 100644
--- a/video/out/w32_common.c
+++ b/video/out/w32_common.c
@@ -688,8 +688,8 @@ static LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam,
// This message is used to wakeup the GUI thread, see wakeup_gui_thread.
mp_dispatch_queue_process(w32->dispatch, 0);
break;
- case WM_ERASEBKGND: // no need to erase background separately
- return 1;
+ //case WM_ERASEBKGND: // no need to erase background separately
+ // return 1;
case WM_PAINT:
signal_events(w32, VO_EVENT_EXPOSE);
break;
@@ -1192,6 +1192,7 @@ static void *gui_thread(void *ptr)
.hIcon = LoadIconW(hInstance, L"IDI_ICON1"),
.hCursor = LoadCursor(NULL, IDC_ARROW),
.lpszClassName = classname,
+ .hbrBackground = CreateSolidBrush(0x00000000),
};
RegisterClassExW(&wcex);
@@ -1209,7 +1210,7 @@ static void *gui_thread(void *ptr)
0, 0, r.right, r.bottom,
w32->parent, 0, hInstance, NULL);
} else {
- w32->window = CreateWindowExW(0, classname,
+ w32->window = CreateWindowExW(WS_EX_APPWINDOW, classname,
classname,
update_style(w32, 0),
CW_USEDEFAULT, SW_HIDE, 100, 100,