# HG changeset patch # User Sam Lantinga # Date 1262200241 0 # Node ID 847549156244f11699e511f0820d34cc353994cc # Parent bfa8d34ce03ad38c5702a6800a53402aab7d776f Removed in the interest of actually finishing 1.3. :) They can be done later, either by me or by someone else. diff -r bfa8d34ce03a -r 847549156244 include/SDL_video.h --- a/include/SDL_video.h Mon Dec 28 08:28:24 2009 +0000 +++ b/include/SDL_video.h Wed Dec 30 19:10:41 2009 +0000 @@ -1225,36 +1225,6 @@ */ extern DECLSPEC int SDLCALL SDL_RenderFillRects(const SDL_Rect ** rect, int count); -#if 0 -/** - * \brief Draw a circle on the current rendering target with the drawing color. - * - * \return 0 on success, or -1 if there is no rendering context current. - */ -extern DECLSPEC int SDLCALL SDL_RenderDrawCircle(int x, int y, int radius); - -/** - * \brief Fill a circle on the current rendering target with the drawing color. - * - * \return 0 on success, or -1 if there is no rendering context current. - */ -extern DECLSPEC int SDLCALL SDL_RenderFillCircle(int x, int y, int radius); - -/** - * \brief Draw an ellipse on the current rendering target with the drawing color. - * - * \return 0 on success, or -1 if there is no rendering context current. - */ -extern DECLSPEC int SDLCALL SDL_RenderDrawEllipse(int x, int y, int w, int h); - -/** - * \brief Fill an ellipse on the current rendering target with the drawing color. - * - * \return 0 on success, or -1 if there is no rendering context current. - */ -extern DECLSPEC int SDLCALL SDL_RenderFillEllipse(int x, int y, int w, int h); -#endif // 0 - /** * \brief Copy a portion of the texture to the current rendering target. * diff -r bfa8d34ce03a -r 847549156244 src/video/SDL_video.c --- a/src/video/SDL_video.c Mon Dec 28 08:28:24 2009 +0000 +++ b/src/video/SDL_video.c Wed Dec 30 19:10:41 2009 +0000 @@ -2673,50 +2673,6 @@ return renderer->RenderFillRects(renderer, rects, count); } -#if 0 -int -SDL_RenderDrawCircle(int x, int y, int radius) -{ - return SDL_RenderDrawEllipse(x, y, 2*radius, 2*radius); -} - -int -SDL_RenderFillCircle(int x, int y, int radius) -{ - return SDL_RenderFillEllipse(x, y, 2*radius, 2*radius); -} - -int SDL_RenderDrawEllipse(int x, int y, int w, int h) -{ - SDL_Renderer *renderer; - - renderer = SDL_GetCurrentRenderer(SDL_TRUE); - if (!renderer) { - return -1; - } - if (!renderer->RenderDrawEllipse) { - SDL_Unsupported(); - return -1; - } - return renderer->RenderDrawEllipse(renderer, x, y, w, h); -} - -int SDL_RenderFillEllipse(int x, int y, int w, int h) -{ - SDL_Renderer *renderer; - - renderer = SDL_GetCurrentRenderer(SDL_TRUE); - if (!renderer) { - return -1; - } - if (!renderer->RenderFillEllipse) { - SDL_Unsupported(); - return -1; - } - return renderer->RenderFillEllipse(renderer, x, y, w, h); -} -#endif // 0 - int SDL_RenderCopy(SDL_TextureID textureID, const SDL_Rect * srcrect, const SDL_Rect * dstrect)