From 0e663f21d7cf3f9d49791d6c167edc361963949a Mon Sep 17 00:00:00 2001 From: Carl Schwope Date: Fri, 15 Nov 2013 01:44:22 -0500 Subject: [PATCH] call SDL_RenderFillRect --- SDL2pp/Renderer.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SDL2pp/Renderer.cc b/SDL2pp/Renderer.cc index 6e5b554..b11ee64 100644 --- a/SDL2pp/Renderer.cc +++ b/SDL2pp/Renderer.cc @@ -160,7 +160,7 @@ void Renderer::DrawRects(const Rect* rects, int count) { void Renderer::FillRect(int x1, int y1, int x2, int y2) { SDL_Rect rect = {x1, y1, x2 - x1 + 1, y2 - y1 + 1}; - if (SDL_RenderDrawRect(renderer_, &rect) != 0) + if (SDL_RenderFillRect(renderer_, &rect) != 0) throw Exception("SDL_RenderFillRect failed"); } @@ -173,7 +173,7 @@ void Renderer::FillRect(const Point& p1, const Point& p2) { void Renderer::FillRect(const Rect& r) { if (r.IsNull()) return; - if (SDL_RenderDrawRect(renderer_, r.Get()) != 0) + if (SDL_RenderFillRect(renderer_, r.Get()) != 0) throw Exception("SDL_RenderFillRect failed"); }