mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-23 04:12:12 +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/
|
||||
FileName Builder.exe
|
||||
UpdateName UltimateDoomBuilder-r[REVNUM]-x86.7z
|
||||
UpdaterName UDB_Updater-x86.7z
|
||||
UpdateName UltimateDoomBuilder-r[REVNUM]-x64.7z
|
||||
UpdaterName UDB_Updater-x64.7z
|
|
@ -4237,7 +4237,7 @@ namespace CodeImp.DoomBuilder.Windows
|
|||
break;
|
||||
|
||||
case General.WM_MOUSEHWHEEL:
|
||||
int delta = m.WParam.ToInt32() >> 16;
|
||||
int delta = unchecked((short)(m.WParam.ToInt64() >> 16));
|
||||
OnMouseHWheel(delta);
|
||||
m.Result = new IntPtr(delta);
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue