mirror of
https://github.com/encounter/SDL.git
synced 2025-12-13 15:16:13 +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:
@@ -75,12 +75,6 @@ static void WIN_SuspendScreenSaver(_THIS)
|
||||
|
||||
/* Windows driver bootstrap functions */
|
||||
|
||||
static int
|
||||
WIN_Available(void)
|
||||
{
|
||||
return (1);
|
||||
}
|
||||
|
||||
static void
|
||||
WIN_DeleteDevice(SDL_VideoDevice * device)
|
||||
{
|
||||
@@ -224,7 +218,7 @@ WIN_CreateDevice(int devindex)
|
||||
|
||||
|
||||
VideoBootStrap WINDOWS_bootstrap = {
|
||||
"windows", "SDL Windows video driver", WIN_Available, WIN_CreateDevice
|
||||
"windows", "SDL Windows video driver", WIN_CreateDevice
|
||||
};
|
||||
|
||||
int
|
||||
|
||||
Reference in New Issue
Block a user