diff src/video/x11/SDL_x11render.c @ 2927:2133d2d300fd

SetDrawColor() and SetDrawBlendMode() are optional
author Sam Lantinga <slouken@libsdl.org>
date Tue, 30 Dec 2008 07:14:11 +0000
parents ffdd533f7add
children e4a469d6ddab
line wrap: on
line diff
--- a/src/video/x11/SDL_x11render.c	Tue Dec 30 04:38:39 2008 +0000
+++ b/src/video/x11/SDL_x11render.c	Tue Dec 30 07:14:11 2008 +0000
@@ -47,7 +47,6 @@
                            const SDL_Rect * rect, int markDirty,
                            void **pixels, int *pitch);
 static void X11_UnlockTexture(SDL_Renderer * renderer, SDL_Texture * texture);
-static int X11_SetDrawColor(SDL_Renderer * renderer);
 static int X11_SetDrawBlendMode(SDL_Renderer * renderer);
 static int X11_RenderPoint(SDL_Renderer * renderer, int x, int y);
 static int X11_RenderLine(SDL_Renderer * renderer, int x1, int y1, int x2,
@@ -197,7 +196,6 @@
     renderer->UpdateTexture = X11_UpdateTexture;
     renderer->LockTexture = X11_LockTexture;
     renderer->UnlockTexture = X11_UnlockTexture;
-    renderer->SetDrawColor = X11_SetDrawColor;
     renderer->SetDrawBlendMode = X11_SetDrawBlendMode;
     renderer->RenderPoint = X11_RenderPoint;
     renderer->RenderLine = X11_RenderLine;
@@ -564,12 +562,6 @@
 }
 
 static int
-X11_SetDrawColor(SDL_Renderer * renderer)
-{
-    return 0;
-}
-
-static int
 X11_SetDrawBlendMode(SDL_Renderer * renderer)
 {
     switch (renderer->blendMode) {