From 0b7e7a29489039ce3db0329fb748b9d3ad4ecbfe Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Tue, 4 Feb 2020 20:21:35 +0100 Subject: [PATCH] set default xSprite clip / projection --- xSDL/xSprite.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xSDL/xSprite.h b/xSDL/xSprite.h index e3dab2d..c0961b1 100644 --- a/xSDL/xSprite.h +++ b/xSDL/xSprite.h @@ -47,8 +47,8 @@ virtual void draw(SDL_Renderer* renderer) override; private: SDL_Surface* _surface = NULL; - SDL_Rect _clip; - SDL_Rect _projection; + SDL_Rect _clip { 0, 0, 0, 0 }; + SDL_Rect _projection { 0, 0, 0, 0 }; mutex _mutex;