Fixed SDL_UpdateRects for the last time
This commit is contained in:
@@ -49,6 +49,8 @@ SdlVideoResize=y
|
||||
# Application resizing will keep 4:3 aspect ratio, with black bars at sides (y)/(n)
|
||||
SdlVideoResizeKeepAspect=n
|
||||
|
||||
CompatibilityHacksProperUsageOfSDL_UpdateRects=y
|
||||
|
||||
# Application does not call SDL_Flip() or SDL_UpdateRects() appropriately, or draws from non-main thread -
|
||||
# enabling the compatibility mode will force screen update every 100 milliseconds, which is laggy and inefficient (y) or (n)
|
||||
CompatibilityHacks=n
|
||||
|
||||
Submodule project/jni/application/xserver/xserver updated: 4f937a66dd...1921292f96
@@ -967,9 +967,10 @@ static void ANDROID_FlipHWSurfaceInternal(int numrects, SDL_Rect *rects)
|
||||
int i;
|
||||
for(i = 0; i < numrects; i++)
|
||||
{
|
||||
//printf("SDL_UpdateTexture: rect %d: %04d:%04d:%04d:%04d", i, rects[i].x, rects[i].y, rects[i].w, rects[i].h);
|
||||
//__android_log_print(ANDROID_LOG_INFO, "libSDL", "SDL_UpdateTexture: rect %d: %04d:%04d:%04d:%04d", i, rects[i].x, rects[i].y, rects[i].w, rects[i].h);
|
||||
SDL_UpdateTexture((struct SDL_Texture *)SDL_CurrentVideoSurface->hwdata, &rects[i],
|
||||
SDL_CurrentVideoSurface->pixels + rects[i].y * SDL_CurrentVideoSurface->pitch + rects[i].x,
|
||||
SDL_CurrentVideoSurface->pixels + rects[i].y * SDL_CurrentVideoSurface->pitch +
|
||||
rects[i].x * SDL_CurrentVideoSurface->format->BytesPerPixel,
|
||||
SDL_CurrentVideoSurface->pitch);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user