Mercurial > projects > dwt-mac
diff dwt/printing/Printer.d @ 46:cfa563df4fdd
Updated Widget and Display to 3.514
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Fri, 05 Dec 2008 16:00:41 +0100 |
parents | d8635bb48c7c |
children | d9893755f670 |
line wrap: on
line diff
--- a/dwt/printing/Printer.d Mon Dec 01 17:07:00 2008 +0100 +++ b/dwt/printing/Printer.d Fri Dec 05 16:00:41 2008 +0100 @@ -217,7 +217,7 @@ if (job.isEqual(new NSString(OS.NSPrintPreviewJob()))) { printInfo.setJobDisposition(job); } - NSRect rect = new NSRect(); + NSRect rect = NSRect(); window = (NSWindow)new NSWindow().alloc(); window.initWithContentRect(rect, OS.NSBorderlessWindowMask, OS.NSBackingStoreBuffered, false); view = (NSView)new NSView().alloc(); @@ -403,10 +403,10 @@ public bool startPage() { checkDevice(); NSSize paperSize = printInfo.paperSize(); - NSRect rect = new NSRect(); + NSRect rect = NSRect(); rect.width = paperSize.width; rect.height = paperSize.height; - view.beginPageInRect(rect, new NSPoint()); + view.beginPageInRect(rect, NSPoint()); NSRect imageBounds = printInfo.imageablePageBounds(); NSBezierPath.bezierPathWithRect(imageBounds).setClip(); NSAffineTransform transform = NSAffineTransform.transform();