Don't let ifdef's confuse the editor's function lookup.

Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14693 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2005-11-04 15:07:31 +00:00
parent 15694b3032
commit ec12c6fe6f

View File

@ -135,10 +135,11 @@ InputServer::InputServer(void) : BApplication(INPUTSERVER_SIGNATURE),
size_t parameterLength = sizeof(parameter);
#ifdef COMPILE_FOR_R5
if (_kget_safemode_option_(B_SAFEMODE_SAFE_MODE, parameter, &parameterLength) == B_OK) {
if (_kget_safemode_option_(B_SAFEMODE_SAFE_MODE, parameter, &parameterLength) == B_OK)
#else
if (_kern_get_safemode_option(B_SAFEMODE_SAFE_MODE, parameter, &parameterLength) == B_OK) {
if (_kern_get_safemode_option(B_SAFEMODE_SAFE_MODE, parameter, &parameterLength) == B_OK)
#endif
{
if (!strcasecmp(parameter, "enabled") || !strcasecmp(parameter, "on")
|| !strcasecmp(parameter, "true") || !strcasecmp(parameter, "yes")
|| !strcasecmp(parameter, "enable") || !strcmp(parameter, "1"))
@ -1175,10 +1176,9 @@ InputServer::DispatchEvents(BList *eventList)
}
fEventsCache.MakeEmpty();
}
return true;
}// end DispatchEvents()
}
int
@ -1633,7 +1633,7 @@ InputServer::WatchPort()
delete event;
continue;
}
// This is where the message should be processed.
// here we test for a message coming from app_server, screen resolution change could have happened
@ -1645,15 +1645,14 @@ InputServer::WatchPort()
fFrame = frame;
}
}
HandleSetMousePosition(event, event);
BList list;
list.AddItem(event);
DispatchEvents(&list);
PRINT(("Event written to port\n"));
}
}