mirror of
https://github.com/fltk/fltk.git
synced 2026-05-20 12:41:27 +08:00
Fl_WinAPI_Printer_Driver::end_page(): make sure rotation stops when the page ends
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user