From 2dfb06d6b680e19bd162a922e0c3e14a87e26a56 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Fri, 12 Jan 2007 17:29:58 +0000 Subject: [PATCH] more fixes from andrey --- gui-osx/screen.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gui-osx/screen.c b/gui-osx/screen.c index 9f8f57f..d2bcd0b 100644 --- a/gui-osx/screen.c +++ b/gui-osx/screen.c @@ -226,7 +226,7 @@ static inline int convert_key(UInt32 key, UInt32 charcode) 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 @@ static OSStatus MainWindowEventHandler(EventHandlerCallRef nextHandler, EventRef 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;