diff options
Diffstat (limited to 'textwindow.c')
-rw-r--r-- | textwindow.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/textwindow.c b/textwindow.c index acb5c34..2fe6d36 100644 --- a/textwindow.c +++ b/textwindow.c @@ -35,7 +35,7 @@ bool cNopacityTextWindow::CreatePixmap(int border) { twText.Set(text, font, geometry->Width() - 2*border); int pixmapTotalHeight = lineHeight * (twText.Lines()+1); int drawportHeight = geometry->Height(); - if (pixmapTotalHeight > drawportHeight) { + if ((pixmapTotalHeight - (lineHeight/2)) > drawportHeight) { drawportHeight = pixmapTotalHeight; scrolling = true; } |