From 3dd739d4a33c98605357b303641ccb9cd3442d21 Mon Sep 17 00:00:00 2001 From: Dmitry Marakasov Date: Fri, 19 Dec 2014 19:26:53 +0300 Subject: [PATCH] Provide default argument for Texture::Lock() --- SDL2pp/Texture.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SDL2pp/Texture.cc b/SDL2pp/Texture.cc index 8e012b3..7180444 100644 --- a/SDL2pp/Texture.cc +++ b/SDL2pp/Texture.cc @@ -98,7 +98,7 @@ void Texture::SetColorMod(Uint8 r, Uint8 g, Uint8 b) { throw Exception("SDL_SetTextureColorMod failed"); } -Texture::LockHandle Texture::Lock(const Rect& rect) { +Texture::LockHandle Texture::Lock(const Rect& rect = Rect::Null()) { return LockHandle(this, rect); }