Skip to content

Commit

Permalink
change build.yml and support window-dragging=no
Browse files Browse the repository at this point in the history
  • Loading branch information
stax76 committed Oct 26, 2023
1 parent d7e1e32 commit ea8944c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,21 +47,21 @@ jobs:
cd src
nuget restore
msbuild -restore
msbuild MpvNet.sln /m /p:Configuration=Release
msbuild MpvNet.sln /m /p:Configuration=Debug
- name: Download libmpv # In principle, only update this binary file when significant feature changes occur in mpv/mpv.net
shell: msys2 {0}
run: |
wget -nv -O libmpv.7z https://downloads.sourceforge.net/mpv-player-windows/mpv-dev-x86_64-v3-20231022-git-6e428c2.7z
7z x -y libmpv.7z -olibmpv
cp -f libmpv/libmpv-2.dll src/MpvNet.Windows/bin/Release/ || true
cp -f libmpv/libmpv-2.dll src/MpvNet.Windows/bin/Debug/ || true
- name: Download MediaInfo
shell: msys2 {0}
run: |
wget -nv -O MediaInfo.7z https://mediaarea.net/download/binary/libmediainfo0/23.10/MediaInfo_DLL_23.10_Windows_x64_WithoutInstaller.7z
7z x -y MediaInfo.7z -oMediaInfo
cp -f MediaInfo/MediaInfo.dll src/MpvNet.Windows/bin/Release/ || true
cp -f MediaInfo/MediaInfo.dll src/MpvNet.Windows/bin/Debug/ || true
- name: Upload
uses: actions/upload-artifact@v3
with:
name: "mpv.net-win64"
path: src/MpvNet.Windows/bin/Release/
path: src/MpvNet.Windows/bin/Debug/
3 changes: 2 additions & 1 deletion src/MpvNet.Windows/WinForms/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1252,7 +1252,8 @@ protected override void OnMouseMove(MouseEventArgs e)

if (IsCursorPosDifferent(_mouseDownLocation) &&
WindowState == FormWindowState.Normal &&
e.Button == MouseButtons.Left && !IsMouseInOsc())
e.Button == MouseButtons.Left && !IsMouseInOsc() &&
Player.GetPropertyBool("window-dragging"))
{
var HTCAPTION = new IntPtr(2);
var WM_NCLBUTTONDOWN = 0xA1;
Expand Down

1 comment on commit ea8944c

@stax76
Copy link
Collaborator Author

@stax76 stax76 commented on ea8944c Oct 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dyphire I always release debug builds, performance is fine.

Please sign in to comment.