shithub: pt2-clone

Download patch

ref: b2d2be285518b1ea8d0db23cc653861ce4222f44
parent: c06010daf3aaa2f04abce427097bcb9f6d8a2203
author: Olav Sørensen <olav.sorensen@live.no>
date: Tue May 19 19:40:13 EDT 2020

Update pt2_mouse.c

- Fixed a bug where clicking to the left of the song/sample name could cause
  a temporary UI lock up.

--- a/src/pt2_mouse.c
+++ b/src/pt2_mouse.c
@@ -1990,7 +1990,7 @@
 			tmp32 = mouse.y - ui.lineCurY;
 			if (tmp32 <= 2 && tmp32 >= -9)
 			{
-				tmp32 = (uint32_t)((mouse.x - ui.lineCurX) + 4) >> 3;
+				tmp32 = (int32_t)((mouse.x - ui.lineCurX) + 4) >> 3;
 				while (tmp32 != 0) // 0 = pos we want
 				{
 					if (tmp32 > 0)