pixel perfect printing?
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4103 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
7ec5852757
commit
a8c26b3b30
@ -1130,8 +1130,8 @@ StyledEditWindow::Print(const char *documentname)
|
||||
if (firstLineOnPage != 0) {
|
||||
top = fTextView->TextHeight(0,firstLineOnPage-1);
|
||||
}
|
||||
float bottom = fTextView->TextHeight(0,printLine);
|
||||
BRect textRect(0.0,top,printable_rect.Width(),bottom);
|
||||
float bottom = fTextView->TextHeight(0,printLine-1);
|
||||
BRect textRect(0.0,top+TEXT_INSET,printable_rect.Width(),bottom+TEXT_INSET);
|
||||
printJob.DrawView(fTextView,textRect,BPoint(0.0,0.0));
|
||||
printJob.SpoolPage();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user