mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-31 14:29:14 +08:00
testlocale: only ininitialize video when needed
This commit is contained in:
@@ -56,6 +56,7 @@ int main(int argc, char **argv)
|
|||||||
if (SDL_strcmp(argv[1], "--listen") == 0) {
|
if (SDL_strcmp(argv[1], "--listen") == 0) {
|
||||||
listen = 1;
|
listen = 1;
|
||||||
consumed = 1;
|
consumed = 1;
|
||||||
|
state->flags |= SDL_INIT_VIDEO;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (consumed <= 0) {
|
if (consumed <= 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user