Final fix for SDL 1.2 SW video, also fixed audio

This commit is contained in:
pelya
2010-07-30 14:54:07 +03:00
parent fb4801bb59
commit 491e1fcda4
2 changed files with 5 additions and 0 deletions

View File

@@ -655,6 +655,7 @@ static int ANDROID_FlipHWSurface(_THIS, SDL_Surface *surface)
rect.w = SDL_CurrentVideoSurface->w;
rect.h = SDL_CurrentVideoSurface->h;
SDL_UpdateTexture((struct SDL_Texture *)SDL_CurrentVideoSurface->hwdata, &rect, SDL_CurrentVideoSurface->pixels, SDL_CurrentVideoSurface->pitch);
SDL_RenderCopy((struct SDL_Texture *)SDL_CurrentVideoSurface->hwdata, &rect, &rect);
}
SDL_ANDROID_CallJavaSwapBuffers();

View File

@@ -198,7 +198,11 @@ static int ANDROIDAUD_OpenAudio (_THIS, SDL_AudioSpec *spec)
SDL_CalculateAudioSpec(audioFormat);
#if SDL_VERSION_ATLEAST(1,3,0)
return(1);
#else
return(0);
#endif
}
static void ANDROIDAUD_CloseAudio(_THIS)