Added the input_server port to the AccelerantHWInterface - again.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12143 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Michael Lotz 2005-03-29 22:44:13 +00:00
parent 127b4b0a4b
commit a4f89893df
2 changed files with 13 additions and 4 deletions

View File

@ -105,13 +105,15 @@ RootLayer::RootLayer(const char *name, int32 workspaceCount,
fClassID = AS_ROOTLAYER_CLASS;
fHidden = false;
fListenPort = find_port(SERVER_INPUT_PORT);
if (fListenPort == B_NAME_NOT_FOUND)
return;
// Spawn our working thread
// fThreadID = spawn_thread(WorkingThread, name, B_REAL_TIME_DISPLAY_PRIORITY, this);
fThreadID = spawn_thread(WorkingThread, name, B_DISPLAY_PRIORITY, this);
fListenPort = find_port(SERVER_INPUT_PORT);
if (fListenPort == B_NAME_NOT_FOUND) {
fListenPort = -1;
return;
}
}
RootLayer::~RootLayer()

View File

@ -99,6 +99,13 @@ AccelerantHWInterface::AccelerantHWInterface()
fDisplayMode.virtual_width = 640;
fDisplayMode.virtual_height = 480;
fDisplayMode.space = B_RGB32;
// TODO: Move this to a more general place
// we need this under Haiku too, as it is where the input_server
// sends it's data to.
port_id serverInputPort = create_port(200, SERVER_INPUT_PORT);
if (serverInputPort == B_NO_MORE_PORTS)
debugger("AccelerantDriver: out of ports\n");
}
// destructor