From a87d5af936c168ed6edbc66547a2c8fddf81f41f Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Tue, 18 Aug 2020 11:48:46 +0300 Subject: SidebarWidget: Faster redraws Reuse previous contents if they are still valid. --- src/ui/paint.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/ui/paint.h') 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) { iLocalDef void drawVLine_Paint(const iPaint *d, iInt2 pos, int len, int color) { drawLine_Paint(d, pos, addY_I2(pos, len), color); } + +iInt2 size_SDLTexture (SDL_Texture *); -- cgit v1.2.3