diff options
Diffstat (limited to 'src/ui/paint.c')
-rw-r--r-- | src/ui/paint.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ui/paint.c b/src/ui/paint.c index a3ee32c6..5506f845 100644 --- a/src/ui/paint.c +++ b/src/ui/paint.c | |||
@@ -152,6 +152,9 @@ void drawSoftShadow_Paint(const iPaint *d, iRect inner, int thickness, int color | |||
152 | addv_I2(&inner.pos, origin_Paint); | 152 | addv_I2(&inner.pos, origin_Paint); |
153 | SDL_Renderer *render = renderer_Paint_(d); | 153 | SDL_Renderer *render = renderer_Paint_(d); |
154 | SDL_Texture *shadow = get_Window()->borderShadow; | 154 | SDL_Texture *shadow = get_Window()->borderShadow; |
155 | if (!shadow) { | ||
156 | return; | ||
157 | } | ||
155 | const iInt2 size = size_SDLTexture(shadow); | 158 | const iInt2 size = size_SDLTexture(shadow); |
156 | const iRect outer = expanded_Rect(inner, init1_I2(thickness)); | 159 | const iRect outer = expanded_Rect(inner, init1_I2(thickness)); |
157 | const iColor clr = get_Color(color); | 160 | const iColor clr = get_Color(color); |