src/video/android/SDL_androidwindow.c
changeset 7037 3fedf1f25b94
parent 6885 700f1b25f77f
child 7163 55eb3d3135eb
equal deleted inserted replaced
7036:8c891504e325 7037:3fedf1f25b94
    29 
    29 
    30 int
    30 int
    31 Android_CreateWindow(_THIS, SDL_Window * window)
    31 Android_CreateWindow(_THIS, SDL_Window * window)
    32 {
    32 {
    33     if (Android_Window) {
    33     if (Android_Window) {
    34         SDL_SetError("Android only supports one window");
    34         return SDL_SetError("Android only supports one window");
    35         return -1;
       
    36     }
    35     }
    37     Android_Window = window;
    36     Android_Window = window;
    38     Android_PauseSem = SDL_CreateSemaphore(0);
    37     Android_PauseSem = SDL_CreateSemaphore(0);
    39     Android_ResumeSem = SDL_CreateSemaphore(0);
    38     Android_ResumeSem = SDL_CreateSemaphore(0);
    40 
    39