Mercurial > sdl-ios-xcode
diff src/video/dummy/SDL_nullrender.c @ 2927:2133d2d300fd
SetDrawColor() and SetDrawBlendMode() are optional
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 30 Dec 2008 07:14:11 +0000 |
parents | 133601e3b255 |
children | a65f7b3a2524 |
line wrap: on
line diff
--- a/src/video/dummy/SDL_nullrender.c Tue Dec 30 04:38:39 2008 +0000 +++ b/src/video/dummy/SDL_nullrender.c Tue Dec 30 07:14:11 2008 +0000 @@ -31,8 +31,6 @@ static SDL_Renderer *SDL_DUMMY_CreateRenderer(SDL_Window * window, Uint32 flags); -static int SDL_DUMMY_SetDrawColor(SDL_Renderer * renderer); -static int SDL_DUMMY_SetDrawBlendMode(SDL_Renderer * renderer); static int SDL_DUMMY_RenderPoint(SDL_Renderer * renderer, int x, int y); static int SDL_DUMMY_RenderLine(SDL_Renderer * renderer, int x1, int y1, int x2, int y2); @@ -93,8 +91,6 @@ } SDL_zerop(data); - renderer->SetDrawColor = SDL_DUMMY_SetDrawColor; - renderer->SetDrawBlendMode = SDL_DUMMY_SetDrawBlendMode; renderer->RenderPoint = SDL_DUMMY_RenderPoint; renderer->RenderLine = SDL_DUMMY_RenderLine; renderer->RenderFill = SDL_DUMMY_RenderFill; @@ -133,18 +129,6 @@ } static int -SDL_DUMMY_SetDrawColor(SDL_Renderer * renderer) -{ - return 0; -} - -static int -SDL_DUMMY_SetDrawBlendMode(SDL_Renderer * renderer) -{ - return 0; -} - -static int SDL_DUMMY_RenderPoint(SDL_Renderer * renderer, int x, int y) { SDL_DUMMY_RenderData *data =