Commit 72fcc48b authored by Daniel Amm's avatar Daniel Amm Committed by Hugo Beauzée-Luyssen

win32: improve the behavior of the play/pause button (refs #14562)

Signed-off-by: default avatarHugo Beauzée-Luyssen <hugo@beauzee.fr>
parent 19420b84
......@@ -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()
......
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