android fix

This commit is contained in:
p.kosyh 2010-10-01 09:19:32 +00:00
parent b72bc49f3e
commit 6b47867e44
2 changed files with 10 additions and 1 deletions

View file

@ -469,6 +469,12 @@ int game_apply_theme(void)
int w = opt_mode[0];
int h = opt_mode[1];
#ifdef ANDROID
if ((w == -1) && opt_fs && !gfx_get_max_mode(&w, &h)) {
opt_mode[0] = w;
opt_mode[1] = h;
}
#endif
if ((w == -1)
&& (gfx_get_max_mode(&w, &h) || (game_theme.w <= w && game_theme.h <= h))) {
w = opt_mode[0];

View file

@ -55,8 +55,11 @@ int snd_hz(void)
}
int alsa_sw = 0;
#ifdef ANDROID
int nosound_sw = 1; /* TODO: help !!! */
#else
int nosound_sw = 0;
#endif
void snd_pause(int on)
{
if (!sound_on)