Mercurial > sdl-ios-xcode
diff src/video/SDL_renderer_sw.c @ 2810:27cb878a278e
Implemented the X11 (non-OpenGL) renderer, no alpha or scaling available.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 30 Nov 2008 21:58:23 +0000 |
parents | c2834344ca44 |
children | 7af2419ad5b0 |
line wrap: on
line diff
--- a/src/video/SDL_renderer_sw.c Sat Nov 29 21:48:14 2008 +0000 +++ b/src/video/SDL_renderer_sw.c Sun Nov 30 21:58:23 2008 +0000 @@ -59,9 +59,6 @@ const SDL_Rect * rect, int markDirty, void **pixels, int *pitch); static void SW_UnlockTexture(SDL_Renderer * renderer, SDL_Texture * texture); -static void SW_DirtyTexture(SDL_Renderer * renderer, - SDL_Texture * texture, int numrects, - const SDL_Rect * rects); static int SW_RenderFill(SDL_Renderer * renderer, Uint8 r, Uint8 g, Uint8 b, Uint8 a, const SDL_Rect * rect); static int SW_RenderCopy(SDL_Renderer * renderer, SDL_Texture * texture, @@ -84,7 +81,7 @@ SDL_TEXTUREBLENDMODE_BLEND | SDL_TEXTUREBLENDMODE_ADD | SDL_TEXTUREBLENDMODE_MOD), (SDL_TEXTURESCALEMODE_NONE | SDL_TEXTURESCALEMODE_FAST), - 11, + 12, { SDL_PIXELFORMAT_INDEX8, SDL_PIXELFORMAT_RGB555, @@ -96,7 +93,8 @@ SDL_PIXELFORMAT_ABGR8888, SDL_PIXELFORMAT_BGRA8888, SDL_PIXELFORMAT_YUY2, - SDL_PIXELFORMAT_UYVY}, + SDL_PIXELFORMAT_UYVY, + SDL_PIXELFORMAT_YVYU}, 0, 0} }; @@ -174,7 +172,6 @@ renderer->UpdateTexture = SW_UpdateTexture; renderer->LockTexture = SW_LockTexture; renderer->UnlockTexture = SW_UnlockTexture; - renderer->DirtyTexture = SW_DirtyTexture; renderer->DestroyTexture = SW_DestroyTexture; renderer->info.mod_modes = SW_RenderDriver.info.mod_modes; @@ -520,12 +517,6 @@ } } -static void -SW_DirtyTexture(SDL_Renderer * renderer, SDL_Texture * texture, - int numrects, const SDL_Rect * rects) -{ -} - static int SW_RenderFill(SDL_Renderer * renderer, Uint8 r, Uint8 g, Uint8 b, Uint8 a, const SDL_Rect * rect)