summaryrefslogtreecommitdiff
path: root/src/ui/paint.h
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-08-18 11:48:46 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-08-18 11:48:46 +0300
commita87d5af936c168ed6edbc66547a2c8fddf81f41f (patch)
tree9fdae936b69db152b6e498b48bade0c25ed21d0c /src/ui/paint.h
parent701f93645b7bb1f2e07e975f97b796910516256d (diff)
SidebarWidget: Faster redraws
Reuse previous contents if they are still valid.
Diffstat (limited to 'src/ui/paint.h')
-rw-r--r--src/ui/paint.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ui/paint.h b/src/ui/paint.h
index aafc7496..5b29b176 100644
--- a/src/ui/paint.h
+++ b/src/ui/paint.h
@@ -35,3 +35,5 @@ iLocalDef void drawHLine_Paint(const iPaint *d, iInt2 pos, int len, int color) {
35iLocalDef void drawVLine_Paint(const iPaint *d, iInt2 pos, int len, int color) { 35iLocalDef void drawVLine_Paint(const iPaint *d, iInt2 pos, int len, int color) {
36 drawLine_Paint(d, pos, addY_I2(pos, len), color); 36 drawLine_Paint(d, pos, addY_I2(pos, len), color);
37} 37}
38
39iInt2 size_SDLTexture (SDL_Texture *);