shithub: drawterm-fdroid

Download patch

ref: 2dfb06d6b680e19bd162a922e0c3e14a87e26a56
parent: 50eb08d17f61e75a862679e6d8c1511fd93d333f
author: Russ Cox <[email protected]>
date: Fri Jan 12 12:29:58 EST 2007

more fixes from andrey

--- a/gui-osx/screen.c
+++ b/gui-osx/screen.c
@@ -226,7 +226,7 @@
 		case QZ_F11: return KF+11;
 		case QZ_F12: return KF+12;
 		case QZ_INSERT: return Kins;
-		case QZ_DELETE: return '0';
+		case QZ_DELETE: return 0x7F;
 		case QZ_HOME: return Khome;
 		case QZ_END: return Kend;
 		case QZ_KP_PLUS: return '+';
@@ -375,7 +375,7 @@
 			    int32_t wheeldelta;
 				GetEventParameter(event,kEventParamMouseWheelDelta,typeSInt32,
 									0,sizeof(EventMouseButton), 0, &wheeldelta);
-				sendbuttons((int16_t)wheeldelta>0 ? 8 : 16,
+				sendbuttons(wheeldelta>0 ? 8 : 16,
 							mousePos.h - winRect.left,
 							mousePos.v - winRect.top);
 				break;