Merge VideoBootStrap::available into VideoBootStrap::create

The two are only ever called together, and combining them makes it possible
to eliminate redundant symbol loading and redundant attempts to connect
to a display server.
This commit is contained in:
M Stoeckl committed 2020-07-12 19:11:15 -04:00
1 parent 49ec65587a
commit 052a13738d
21 files changed
+39 -118

No files matched your search

+1 -7
View File
@@ -352,13 +352,7 @@ createDevice(int devindex)
return device;
}
static int
available()
{
return 1;
}
VideoBootStrap QNX_bootstrap = {
"qnx", "QNX Screen",
available, createDevice
createDevice
};