diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-09-12 08:36:55 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-09-12 08:36:55 +0300 |
commit | fdd3d54c520269a630447576a289261bdca48f37 (patch) | |
tree | 1176b88a193769d93aa41be7fb5f7351dfb43004 /src/ui/listwidget.c | |
parent | 0323d36f28b3954d4111dbb0c22cd7983edec855 (diff) |
ListWidget: Tweaking item drawing
Diffstat (limited to 'src/ui/listwidget.c')
-rw-r--r-- | src/ui/listwidget.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/listwidget.c b/src/ui/listwidget.c index a0cd4bb4..5cb2754f 100644 --- a/src/ui/listwidget.c +++ b/src/ui/listwidget.c | |||
@@ -431,7 +431,7 @@ static void draw_ListWidget_(const iListWidget *d) { | |||
431 | iListVisBuffer *buf = m->visBuffers + i; | 431 | iListVisBuffer *buf = m->visBuffers + i; |
432 | // printf("%zu: orig %d, invalid %d ... %d\n", i, buf->origin, invalidRange[i].start, invalidRange[i].end); | 432 | // printf("%zu: orig %d, invalid %d ... %d\n", i, buf->origin, invalidRange[i].start, invalidRange[i].end); |
433 | iRanges drawItems = { iMax(0, buf->origin) / d->itemHeight, | 433 | iRanges drawItems = { iMax(0, buf->origin) / d->itemHeight, |
434 | iMax(0, buf->origin + d->visBufSize.y) / d->itemHeight + 1 }; | 434 | iMax(0, buf->origin + d->visBufSize.y) / d->itemHeight }; |
435 | iBool isTargetSet = iFalse; | 435 | iBool isTargetSet = iFalse; |
436 | if (isEmpty_Rangei(buf->validRange)) { | 436 | if (isEmpty_Rangei(buf->validRange)) { |
437 | isTargetSet = iTrue; | 437 | isTargetSet = iTrue; |