summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Fl_GDI_Printer.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Fl_GDI_Printer.cxx b/src/Fl_GDI_Printer.cxx
index 00f40eb29..edeb86ef6 100644
--- a/src/Fl_GDI_Printer.cxx
+++ b/src/Fl_GDI_Printer.cxx
@@ -132,8 +132,11 @@ void Fl_System_Printer::absolute_printable_rect(int *x, int *y, int *w, int *h)
{
POINT physPageSize;
POINT pixelsPerInch;
+ XFORM transform;
if (hPr == NULL) return;
+ GetWorldTransform(fl_gc, &transform);
+ ModifyWorldTransform(fl_gc, NULL, MWT_IDENTITY);
SetWindowOrgEx(fl_gc, 0, 0, NULL);
physPageSize.x = GetDeviceCaps(hPr, HORZRES);
@@ -152,6 +155,7 @@ void Fl_System_Printer::absolute_printable_rect(int *x, int *y, int *w, int *h)
*x = left_margin;
*y = top_margin;
origin(x_offset, y_offset);
+ SetWorldTransform(fl_gc, &transform);
}
void Fl_System_Printer::margins(int *left, int *top, int *right, int *bottom)