summaryrefslogtreecommitdiff
path: root/src/drivers/WinAPI
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2019-07-13 19:50:46 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2019-07-13 19:50:46 +0200
commitaf5fb2aeb33a55b78d92d16be53d790ee199a848 (patch)
tree929d93665afc1e62816523be7524060d370b28a2 /src/drivers/WinAPI
parent58dad3bda20c880777c1f35dace07b460f49800f (diff)
Fl_WinAPI_Printer_Driver::end_page(): make sure rotation stops when the page ends
Diffstat (limited to 'src/drivers/WinAPI')
-rw-r--r--src/drivers/WinAPI/Fl_WinAPI_Printer_Driver.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/drivers/WinAPI/Fl_WinAPI_Printer_Driver.cxx b/src/drivers/WinAPI/Fl_WinAPI_Printer_Driver.cxx
index 4366f8827..6e5cad4bb 100644
--- a/src/drivers/WinAPI/Fl_WinAPI_Printer_Driver.cxx
+++ b/src/drivers/WinAPI/Fl_WinAPI_Printer_Driver.cxx
@@ -3,7 +3,7 @@
//
// Printing support for Windows for the Fast Light Tool Kit (FLTK).
//
-// Copyright 2010-2018 by Bill Spitzak and others.
+// Copyright 2010-2019 by Bill Spitzak and others.
//
// This library is free software. Distribution and use rights are outlined in
// the file "COPYING" which should have been included with this file. If this
@@ -275,6 +275,9 @@ int Fl_WinAPI_Printer_Driver::end_page (void)
fl_alert ("EndPage error %d", prerr);
rsult = 1;
}
+ else { // make sure rotation is not transferred to next page
+ ModifyWorldTransform(hPr, NULL, MWT_IDENTITY);
+ }
}
return rsult;
}