[vlc-commits] npapi win32: added background paint for plugin parent window

Sergey Radionov git at videolan.org
Thu Jan 5 03:00:04 CET 2012


npapi-vlc | branch: master | Sergey Radionov <RSATom at gmail.com> | Sun Jan  1 22:20:41 2012 +0700| [d9aa24dc50e2e49dc7a4fbb7f206dc268c2b95d7] | committer: Sergey Radionov

npapi win32: added background paint for plugin parent window

since it can be visible when fullscreen window is on on another display.

> http://git.videolan.org/gitweb.cgi/npapi-vlc.git/?a=commit;h=d9aa24dc50e2e49dc7a4fbb7f206dc268c2b95d7
---

 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();



More information about the vlc-commits mailing list