diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-09-19 13:28:58 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-09-19 13:28:58 +0300 |
commit | 81007a2debffebc97c230cd810fb1bf10760180f (patch) | |
tree | 80639ed9d2723b397710cafd3de1a479ef400d02 /src/ui/paint.c | |
parent | b131ffbc42d66d7668844f12d7b24ddcf1a5c176 (diff) |
Refactoring Window to split off MainWindow
MainWindow represents (one of) the main windows of the app, while the basic Window will be a used for popups.
Only MainWindow supports split view modes.
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); |