src/video/android/SDL_androidwindow.c
changeset 4998 a514bfe6952a
child 5001 77df56570442
equal deleted inserted replaced
4997:a21501393bef 4998:a514bfe6952a
       
     1 /*
       
     2     SDL - Simple DirectMedia Layer
       
     3     Copyright (C) 1997-2010 Sam Lantinga
       
     4 
       
     5     This library is free software; you can redistribute it and/or
       
     6     modify it under the terms of the GNU Lesser General Public
       
     7     License as published by the Free Software Foundation; either
       
     8     version 2.1 of the License, or (at your option) any later version.
       
     9 
       
    10     This library is distributed in the hope that it will be useful,
       
    11     but WITHOUT ANY WARRANTY; without even the implied warranty of
       
    12     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
       
    13     Lesser General Public License for more details.
       
    14 
       
    15     You should have received a copy of the GNU Lesser General Public
       
    16     License along with this library; if not, write to the Free Software
       
    17     Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
       
    18 
       
    19     Sam Lantinga
       
    20     slouken@libsdl.org
       
    21 */
       
    22 #include "SDL_config.h"
       
    23 
       
    24 #include "../SDL_sysvideo.h"
       
    25 
       
    26 #include "SDL_androidvideo.h"
       
    27 #include "SDL_androidwindow.h"
       
    28 
       
    29 int
       
    30 Android_CreateWindow(_THIS, SDL_Window * window)
       
    31 {
       
    32     /* Adjust the window data to match the screen */
       
    33     window->x = 0;
       
    34     window->y = 0;
       
    35     window->w = Android_ScreenWidth;
       
    36     window->h = Android_ScreenHeight;
       
    37 
       
    38     return 0;
       
    39 }
       
    40 
       
    41 void
       
    42 Android_SetWindowTitle(_THIS, SDL_Window * window)
       
    43 {
       
    44     Android_JNI_SetActivityTitle(window->title);
       
    45 }
       
    46 
       
    47 void
       
    48 Android_DestroyWindow(_THIS, SDL_Window * window)
       
    49 {
       
    50 }
       
    51 
       
    52 /* vi: set ts=4 sw=4 expandtab: */