mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-31 14:33:54 -04:00
...
This commit is contained in:
parent
d39524d79b
commit
7d5a6e00aa
@ -681,6 +681,10 @@ void PictureFlowPrivate::render_text(QPainter *painter, int index) {
|
||||
// So that if there is no subtitle, the caption is not flush with the bottom
|
||||
if (brect2.height() < fontSize) brect2.setHeight(fontSize);
|
||||
|
||||
// So that the text does not occupy more than the lower half of the buffer
|
||||
if (brect.height() > ((int)(buffer.height()/3.0)) - fontSize*2)
|
||||
brect.setHeight(((int)buffer.height()/3.0) - fontSize*2);
|
||||
|
||||
brect.moveTop(buffer_height - (brect.height() + brect2.height()));
|
||||
//printf("top: %d, height: %d\n", brect.top(), brect.height());
|
||||
//
|
||||
|
Loading…
x
Reference in New Issue
Block a user