Final fix for SDL 1.2 SW video, also fixed audio
This commit is contained in:
@@ -655,6 +655,7 @@ static int ANDROID_FlipHWSurface(_THIS, SDL_Surface *surface)
|
|||||||
rect.w = SDL_CurrentVideoSurface->w;
|
rect.w = SDL_CurrentVideoSurface->w;
|
||||||
rect.h = SDL_CurrentVideoSurface->h;
|
rect.h = SDL_CurrentVideoSurface->h;
|
||||||
SDL_UpdateTexture((struct SDL_Texture *)SDL_CurrentVideoSurface->hwdata, &rect, SDL_CurrentVideoSurface->pixels, SDL_CurrentVideoSurface->pitch);
|
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();
|
SDL_ANDROID_CallJavaSwapBuffers();
|
||||||
|
|||||||
@@ -198,7 +198,11 @@ static int ANDROIDAUD_OpenAudio (_THIS, SDL_AudioSpec *spec)
|
|||||||
|
|
||||||
SDL_CalculateAudioSpec(audioFormat);
|
SDL_CalculateAudioSpec(audioFormat);
|
||||||
|
|
||||||
|
#if SDL_VERSION_ATLEAST(1,3,0)
|
||||||
return(1);
|
return(1);
|
||||||
|
#else
|
||||||
|
return(0);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static void ANDROIDAUD_CloseAudio(_THIS)
|
static void ANDROIDAUD_CloseAudio(_THIS)
|
||||||
|
|||||||
Reference in New Issue
Block a user