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:
parent
127b4b0a4b
commit
a4f89893df
@ -105,13 +105,15 @@ RootLayer::RootLayer(const char *name, int32 workspaceCount,
|
|||||||
fClassID = AS_ROOTLAYER_CLASS;
|
fClassID = AS_ROOTLAYER_CLASS;
|
||||||
fHidden = false;
|
fHidden = false;
|
||||||
|
|
||||||
fListenPort = find_port(SERVER_INPUT_PORT);
|
|
||||||
if (fListenPort == B_NAME_NOT_FOUND)
|
|
||||||
return;
|
|
||||||
|
|
||||||
// Spawn our working thread
|
// Spawn our working thread
|
||||||
// fThreadID = spawn_thread(WorkingThread, name, B_REAL_TIME_DISPLAY_PRIORITY, this);
|
// fThreadID = spawn_thread(WorkingThread, name, B_REAL_TIME_DISPLAY_PRIORITY, this);
|
||||||
fThreadID = spawn_thread(WorkingThread, name, B_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()
|
RootLayer::~RootLayer()
|
||||||
|
@ -99,6 +99,13 @@ AccelerantHWInterface::AccelerantHWInterface()
|
|||||||
fDisplayMode.virtual_width = 640;
|
fDisplayMode.virtual_width = 640;
|
||||||
fDisplayMode.virtual_height = 480;
|
fDisplayMode.virtual_height = 480;
|
||||||
fDisplayMode.space = B_RGB32;
|
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
|
// destructor
|
||||||
|
Loading…
Reference in New Issue
Block a user