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