Commit d9aa24dc authored by Sergey Radionov's avatar Sergey Radionov

npapi win32: added background paint for plugin parent window

since it can be visible when fullscreen window is on on another display.
parent 8a1073e8
...@@ -57,6 +57,11 @@ LRESULT CALLBACK VlcPluginWin::NPWndProcR(HWND hWnd, UINT uMsg, WPARAM wParam, L ...@@ -57,6 +57,11 @@ LRESULT CALLBACK VlcPluginWin::NPWndProcR(HWND hWnd, UINT uMsg, WPARAM wParam, L
VlcPluginWin *p_plugin = reinterpret_cast<VlcPluginWin *>(ud); VlcPluginWin *p_plugin = reinterpret_cast<VlcPluginWin *>(ud);
switch( uMsg ){ switch( uMsg ){
case WM_ERASEBKGND:
RECT rect;
GetClientRect(hWnd, &rect);
FillRect((HDC)wParam, &rect, (HBRUSH) (COLOR_WINDOW+1));
return 1;
case WM_DESTROY: case WM_DESTROY:
// Opera does not call NPP_SetWindow on window destruction... // Opera does not call NPP_SetWindow on window destruction...
p_plugin->destroy_windows(); p_plugin->destroy_windows();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment