From c959f221ef49dff341f7c0fc951c34b66640644b Mon Sep 17 00:00:00 2001 From: haru-s Date: Tue, 2 Jul 2024 23:48:13 +0900 Subject: [PATCH] Change the body keyword to the do keyword (For DMD v2.097.0) --- source/dfl/drawing.d | 6 +++--- source/dfl/printing.d | 16 ++++++++-------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/source/dfl/drawing.d b/source/dfl/drawing.d index 51b0432..ca74062 100644 --- a/source/dfl/drawing.d +++ b/source/dfl/drawing.d @@ -3239,7 +3239,7 @@ class Graphics // docmain { assert(_hdc); } - body + do { return GetDeviceCaps(_hdc, LOGPIXELSX); // NOTE: Allways return 96 in video display (View document of SetProcessDPIAware()). } @@ -3250,7 +3250,7 @@ class Graphics // docmain { assert(_hdc); } - body + do { return GetDeviceCaps(_hdc, LOGPIXELSY); // NOTE: Allways return 96 in video display (View document of SetProcessDPIAware()). } @@ -3262,7 +3262,7 @@ class Graphics // docmain { assert(_hdc); } - body + do { const int dpiHor = this.dpiX; // NOTE: Allways return 96 in video display (View document of SetProcessDPIAware()). const int dpiVer = this.dpiY; // NOTE: Allways return 96 in video display (View document of SetProcessDPIAware()). diff --git a/source/dfl/printing.d b/source/dfl/printing.d index 2716fd8..64622d0 100644 --- a/source/dfl/printing.d +++ b/source/dfl/printing.d @@ -1233,7 +1233,7 @@ class PageSettings assert(this.paperSize); assert(this.margins); } - body + do { int width = this.paperSize.width - this.margins.left - this.margins.right; int height = this.paperSize.height - this.margins.top - this.margins.bottom; @@ -2106,7 +2106,7 @@ class PrintPreviewControl : Control { assert(doc); } - body + do { _document = doc; _columns = 1; @@ -2121,7 +2121,7 @@ class PrintPreviewControl : Control { assert(doc); } - body + do { _document = doc; } @@ -2187,7 +2187,7 @@ class PrintPreviewControl : Control { assert(document); } - body + do { PAGESETUPDLG pd; bool isOK = _createPagesetupdlgFromPrinterSettings(pd, document.printerSettings); @@ -2287,7 +2287,7 @@ class PrintPreviewDialog : Form { assert(doc); } - body + do { this.text = "Print Preview"; @@ -2519,7 +2519,7 @@ class PrintPreviewDialog : Form assert(doc); assert(_previewControl); } - body + do { _previewControl.document = doc; } @@ -2529,7 +2529,7 @@ class PrintPreviewDialog : Form { assert(_previewControl); } - body + do { return _previewControl.document; } @@ -2605,7 +2605,7 @@ class PreviewPrintController : PrintController { assert(previewControl); } - body + do { _previewControl = previewControl; }