Mercurial > sdl-ios-xcode
diff src/SDL_compat.c @ 1985:8055185ae4ed
Added source color and alpha modulation support.
Added perl script to generate optimized render copy functions.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 28 Aug 2006 03:17:39 +0000 |
parents | 70deaf574153 |
children | 6bb97f41ab4b |
line wrap: on
line diff
--- a/src/SDL_compat.c Thu Aug 24 12:49:59 2006 +0000 +++ b/src/SDL_compat.c Mon Aug 28 03:17:39 2006 +0000 @@ -673,9 +673,7 @@ if (screen == SDL_VideoSurface) { if (SDL_VideoRendererInfo.flags & SDL_RENDERER_PRESENTCOPY) { for (i = 0; i < numrects; ++i) { - SDL_RenderCopy(SDL_VideoTexture, &rects[i], &rects[i], - SDL_TEXTUREBLENDMODE_NONE, - SDL_TEXTURESCALEMODE_NONE); + SDL_RenderCopy(SDL_VideoTexture, &rects[i], &rects[i]); } } else { SDL_Rect rect; @@ -683,9 +681,7 @@ rect.y = 0; rect.w = screen->w; rect.h = screen->h; - SDL_RenderCopy(SDL_VideoTexture, &rect, &rect, - SDL_TEXTUREBLENDMODE_NONE, - SDL_TEXTURESCALEMODE_NONE); + SDL_RenderCopy(SDL_VideoTexture, &rect, &rect); } SDL_RenderPresent(); } @@ -1421,9 +1417,7 @@ int SDL_DisplayYUVOverlay(SDL_Overlay * overlay, SDL_Rect * dstrect) { - if (SDL_RenderCopy(overlay->hwdata->textureID, NULL, dstrect, - SDL_TEXTUREBLENDMODE_NONE, - SDL_TEXTURESCALEMODE_FAST) < 0) { + if (SDL_RenderCopy(overlay->hwdata->textureID, NULL, dstrect) < 0) { return -1; } SDL_RenderPresent();