src/video/android/SDL_androidwindow.c
changeset 12910 dd9169424181
parent 12823 f7629f5761d8
equal deleted inserted replaced
12909:8e27bc5f03d8 12910:dd9169424181
    40 Android_CreateWindow(_THIS, SDL_Window * window)
    40 Android_CreateWindow(_THIS, SDL_Window * window)
    41 {
    41 {
    42     SDL_WindowData *data;
    42     SDL_WindowData *data;
    43     int retval = 0;
    43     int retval = 0;
    44 
    44 
    45     SDL_LockMutex(Android_ActivityMutex);
    45     Android_ActivityMutex_Lock_Running();
    46 
    46 
    47     if (Android_Window) {
    47     if (Android_Window) {
    48         retval = SDL_SetError("Android only supports one window");
    48         retval = SDL_SetError("Android only supports one window");
    49         goto endfunction;
    49         goto endfunction;
    50     }
    50     }