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