[vlc-devel] [PATCH 3/5] npapi win32: added background paint for plugin parent window
Sergey Radionov
rsatom at gmail.com
Sun Jan 1 17:25:24 CET 2012
since it can be visible when fullscreen window is on on another display.
---
npapi/vlcplugin_win.cpp | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/npapi/vlcplugin_win.cpp b/npapi/vlcplugin_win.cpp
index f8331eb..671d103 100644
--- a/npapi/vlcplugin_win.cpp
+++ b/npapi/vlcplugin_win.cpp
@@ -57,6 +57,11 @@ LRESULT CALLBACK VlcPluginWin::NPWndProcR(HWND hWnd, UINT uMsg, WPARAM wParam, L
VlcPluginWin *p_plugin = reinterpret_cast<VlcPluginWin *>(ud);
switch( uMsg ){
+ case WM_ERASEBKGND:
+ RECT rect;
+ GetClientRect(hWnd, &rect);
+ FillRect((HDC)wParam, &rect, (HBRUSH) (COLOR_WINDOW+1));
+ return 1;
case WM_DESTROY:
// Opera does not call NPP_SetWindow on window destruction...
p_plugin->destroy_windows();
--
1.7.7.1.msysgit.0
More information about the vlc-devel
mailing list