[PATCH] quartz: fix video renderer not drawing

Maarten Lankhorst m.b.lankhorst at gmail.com
Fri Jul 5 09:46:00 CDT 2013


There HAS to be a cleaner way to do this..

Is it legal to use the DC outside of the thread the window belongs to?
8<---
--- a/dlls/quartz/videorenderer.c
+++ b/dlls/quartz/videorenderer.c
@@ -251,6 +251,7 @@ static DWORD VideoRenderer_SendSampleData(VideoRendererImpl* This, LPBYTE data,
                   This->DestRect.bottom - This->DestRect.top, This->SourceRect.left, This->SourceRect.top,
                   This->SourceRect.right - This->SourceRect.left, This->SourceRect.bottom - This->SourceRect.top,
                   data, (BITMAPINFO *)bmiHeader, DIB_RGB_COLORS, SRCCOPY);
+    SendMessageW(This->baseControlWindow.baseWindow.hWnd, WM_NULL, 0, 0);
 
     return S_OK;
 }
@@ -420,7 +421,7 @@ static LPWSTR WINAPI VideoRenderer_GetClassWindowStyles(BaseWindow *This, DWORD
 {
     static const WCHAR classnameW[] = { 'W','i','n','e',' ','A','c','t','i','v','e','M','o','v','i','e',' ','C','l','a','s','s',0 };
 
-    *pClassStyles = 0;
+    *pClassStyles = CS_OWNDC;
     *pWindowStyles = WS_SIZEBOX;
     *pWindowStylesEx = 0;
 




More information about the wine-patches mailing list