mirror of
https://github.com/encounter/SDL.git
synced 2025-12-21 18:59:15 +00:00
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:
@@ -352,13 +352,7 @@ createDevice(int devindex)
|
||||
return device;
|
||||
}
|
||||
|
||||
static int
|
||||
available()
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
VideoBootStrap QNX_bootstrap = {
|
||||
"qnx", "QNX Screen",
|
||||
available, createDevice
|
||||
createDevice
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user