fix debug build

avoid allocating a BMessage in InitKeyboardMouse, as reported in bug #140


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16346 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval 2006-02-11 12:30:36 +00:00
parent f06f67c546
commit 7d0b5dc160
1 changed files with 6 additions and 6 deletions

View File

@ -262,8 +262,8 @@ InputServer::_InitKeyboardMouseStates()
if (_LoadKeymap() != B_OK) if (_LoadKeymap() != B_OK)
_LoadSystemKeymap(); _LoadSystemKeymap();
BMessage *msg = new BMessage(B_MOUSE_MOVED); BMessage msg(B_MOUSE_MOVED);
HandleSetMousePosition(msg, msg); HandleSetMousePosition(&msg, &msg);
fActiveMethod = &gKeymapMethod; fActiveMethod = &gKeymapMethod;
} }
@ -1244,8 +1244,8 @@ InputServer::DoMouseAcceleration(int32* _x, int32* _y)
// ToDo: implement mouse acceleration // ToDo: implement mouse acceleration
(void)speed; (void)speed;
//*y = *x * speed; //*_y = *_x * speed;
PRINT(("DoMouse : %ld %ld %ld %ld\n", *x, *y, speed, fMouseSettings.MouseSpeed())); PRINT(("DoMouse : %ld %ld %ld %ld\n", *_x, *_y, speed, fMouseSettings.MouseSpeed()));
return true; return true;
} }
@ -1323,7 +1323,7 @@ InputServer::_EventLoop()
// Block until we find the size of the next message // Block until we find the size of the next message
ssize_t length = port_buffer_size(fEventLooperPort); ssize_t length = port_buffer_size(fEventLooperPort);
if (length < B_OK) { if (length < B_OK) {
PRINT("[Event Looper] port gone, exiting.\n"); PRINT(("[Event Looper] port gone, exiting.\n"));
return; return;
} }
@ -1431,7 +1431,7 @@ InputServer::_SanitizeEvents(EventList& events)
event->AddPoint("where", fMousePos); event->AddPoint("where", fMousePos);
PRINT(("new position: %f, %f, %ld, %ld\n", PRINT(("new position: %f, %f, %ld, %ld\n",
fMousePos.x, fMousePos.y, xValue, yValue)); fMousePos.x, fMousePos.y, x, y));
} else if (event->FindPoint("where", &where) == B_OK) { } else if (event->FindPoint("where", &where) == B_OK) {
fMousePos = where; fMousePos = where;
fMousePos.ConstrainTo(fFrame); fMousePos.ConstrainTo(fFrame);