Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/surface.cr
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,11 @@ module SDL

# Fill the whole surface with a RGB(A) color.
def fill(r, g, b, a = nil)
fill(nil, r, g, b, a)
fill(Rect[0, 0, width, height], r, g, b, a)
end

# Fill a *rect* of the surface with a RGB(A) color.
def fill(rect, r, g, b, a = nil)
def fill(rect : Rect, r, g, b, a = nil)
if a
LibSDL.fill_rect(self, pointerof(rect), color(r, g, b, a))
else
Expand Down