Mercurial > projects > dwt-win
diff dwt/printing/Printer.d @ 213:36f5cb12e1a2
Update to SWT 3.4M7
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sat, 17 May 2008 17:34:28 +0200 |
parents | ab60f3309436 |
children | fd9c62a2998e |
line wrap: on
line diff
--- a/dwt/printing/Printer.d Mon May 05 00:12:38 2008 +0200 +++ b/dwt/printing/Printer.d Sat May 17 17:34:28 2008 +0200 @@ -18,6 +18,7 @@ import dwt.DWTException; import dwt.graphics.Device; import dwt.graphics.DeviceData; +import dwt.graphics.Font; import dwt.graphics.GCData; import dwt.graphics.Point; import dwt.graphics.Rectangle; @@ -254,7 +255,7 @@ data.style |= DWT.LEFT_TO_RIGHT; } data.device = this; - data.hFont = OS.GetCurrentObject(handle, OS.OBJ_FONT); + data.font = Font.win32_new(this, OS.GetCurrentObject(handle, OS.OBJ_FONT)); isGCCreated = true; } return handle;