Skip to content

Commit

Permalink
Match function declarations with definitions.
Browse files Browse the repository at this point in the history
  • Loading branch information
lipk committed Jun 17, 2014
1 parent fac9ea5 commit 976e439
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/sdl/rect.cpp
Expand Up @@ -112,15 +112,15 @@ void draw_solid_tinted_rectangle(int x, int y, int w, int h,


#if SDL_VERSION_ATLEAST(2,0,0)
void fill_rect(SDL_Renderer *rnd, SDL_Rect *rect, Uint8 r, Uint8 g, Uint8 b,
Uint8 a)
void fill_rect(SDL_Renderer *rnd, const SDL_Rect *rect, Uint8 r, Uint8 g,
Uint8 b, Uint8 a)
{
SDL_SetRenderDrawColor(rnd, r, g, b, a);
SDL_RenderFillRect(rnd, rect);
}

void draw_rect(SDL_Renderer *rnd, SDL_Rect *rect, Uint8 r, Uint8 g, Uint8 b,
Uint8 a)
void draw_rect(SDL_Renderer *rnd, const SDL_Rect *rect, Uint8 r, Uint8 g,
Uint8 b, Uint8 a)
{
SDL_SetRenderDrawColor(rnd, r, g, b, a);
SDL_RenderDrawRect(rnd, rect);
Expand Down
4 changes: 2 additions & 2 deletions src/sdl/rect.hpp
Expand Up @@ -142,10 +142,10 @@ inline void fill_rect(surface& dst, SDL_Rect* dst_rect, const Uint32 color)
}

#if SDL_VERSION_ATLEAST(2,0,0)
void fill_rect(SDL_Renderer &rnd, const SDL_Rect *rect, Uint8 r, Uint8 g,
void fill_rect(SDL_Renderer *rnd, const SDL_Rect *rect, Uint8 r, Uint8 g,
Uint8 b, Uint8 a);

void draw_rect(SDL_Renderer &rnd, const SDL_Rect *rect, Uint8 r, Uint8 g,
void draw_rect(SDL_Renderer *rnd, const SDL_Rect *rect, Uint8 r, Uint8 g,
Uint8 b, Uint8 a);
#endif
} // namespace sdl
Expand Down

0 comments on commit 976e439

Please sign in to comment.