npapi-vlc | branch: master | Daniel Amm <[email protected]> | Mon May 11 18:14:03 2015 +0200| [72fcc48b40d07a5a4e323464484c51417404afb3] | committer: Hugo Beauzée-Luyssen
win32: improve the behavior of the play/pause button (refs #14562) Signed-off-by: Hugo Beauzée-Luyssen <[email protected]> > http://git.videolan.org/gitweb.cgi/npapi-vlc.git/?a=commit;h=72fcc48b40d07a5a4e323464484c51417404afb3 --- common/win32_fullscreen.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/common/win32_fullscreen.cpp b/common/win32_fullscreen.cpp index bd83060..5d928ea 100644 --- a/common/win32_fullscreen.cpp +++ b/common/win32_fullscreen.cpp @@ -145,7 +145,7 @@ LRESULT VLCControlsWnd::WindowProc(UINT uMsg, WPARAM wParam, LPARAM lParam) ControlWidth, ControlsHeight, hWnd(), (HMENU)ID_FS_PLAY_PAUSE, 0, 0); SendMessage(hPlayPauseButton, BM_SETIMAGE, - (WPARAM)IMAGE_BITMAP, (LPARAM)RC().hPauseBitmap); + (WPARAM)IMAGE_BITMAP, (LPARAM)RC().hPlayBitmap); HorizontalOffset+=ControlWidth+xControlsSpace; ControlWidth = 200; @@ -395,6 +395,10 @@ void VLCControlsWnd::RegisterToVLCEvents() VP()->get_mp().eventManager().onPaused([this] { PostMessage(hPlayPauseButton, BM_SETIMAGE, (WPARAM) IMAGE_BITMAP, (LPARAM) RC().hPlayBitmap); }); + + VP()->get_mp().eventManager().onStopped([this] { + PostMessage(hPlayPauseButton, BM_SETIMAGE, (WPARAM) IMAGE_BITMAP, (LPARAM) RC().hPlayBitmap); + }); } void VLCControlsWnd::NeedShowControls() _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
