mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-02-05 15:21:34 +00:00
Fix exception caused by horizontal mouse wheel (resolves #409 reported by ioan-chera, reported by KanaiZo)
This commit is contained in:
parent
b290af191f
commit
0aaef4980b
2 changed files with 4 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
||||||
URL http://devbuilds.drdteam.org/ultimatedoombuilder/
|
URL http://devbuilds.drdteam.org/ultimatedoombuilder/
|
||||||
FileName Builder.exe
|
FileName Builder.exe
|
||||||
UpdateName UltimateDoomBuilder-r[REVNUM]-x86.7z
|
UpdateName UltimateDoomBuilder-r[REVNUM]-x64.7z
|
||||||
UpdaterName UDB_Updater-x86.7z
|
UpdaterName UDB_Updater-x64.7z
|
|
@ -4237,7 +4237,7 @@ namespace CodeImp.DoomBuilder.Windows
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case General.WM_MOUSEHWHEEL:
|
case General.WM_MOUSEHWHEEL:
|
||||||
int delta = m.WParam.ToInt32() >> 16;
|
int delta = unchecked((short)(m.WParam.ToInt64() >> 16));
|
||||||
OnMouseHWheel(delta);
|
OnMouseHWheel(delta);
|
||||||
m.Result = new IntPtr(delta);
|
m.Result = new IntPtr(delta);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue