Rework of display* mechanism to use new MacOSX10.4 method.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25291 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fredkiefer 2007-06-26 16:46:50 +00:00
parent d7426f2aac
commit d8d13297cb
6 changed files with 397 additions and 368 deletions

View file

@ -1145,11 +1145,12 @@ scaleRect(NSRect rect, double scale)
}
/* Do the actual drawing */
[self displayRectIgnoringOpacity: pageRect];
[self displayRectIgnoringOpacity: pageRect inContext: ctxt];
/* End a logical page */
// Balance gsave in beginPageInRect:
// FIXME: Attempt to get the coordinates of the page border correct.
DPSgrestore(ctxt);
DPSgsave(ctxt);
[self drawPageBorderWithSize: info.paperBounds.size];
[self endPage];