diff options
Diffstat (limited to 'src/Fl_GDI_Printer.cxx')
| -rw-r--r-- | src/Fl_GDI_Printer.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Fl_GDI_Printer.cxx b/src/Fl_GDI_Printer.cxx index be740e30f..00f40eb29 100644 --- a/src/Fl_GDI_Printer.cxx +++ b/src/Fl_GDI_Printer.cxx @@ -211,7 +211,7 @@ void Fl_System_Printer::rotate (float rot_angle) { XFORM mat; float angle; - angle = - rot_angle * M_PI / 180.; + angle = (float) - (rot_angle * M_PI / 180.); mat.eM11 = cos(angle); mat.eM12 = sin(angle); mat.eM21 = - mat.eM12; @@ -247,8 +247,8 @@ static void do_translate(int x, int y) XFORM tr; tr.eM11 = tr.eM22 = 1; tr.eM12 = tr.eM21 = 0; - tr.eDx = x; - tr.eDy = y; + tr.eDx = (FLOAT) x; + tr.eDy = (FLOAT) y; ModifyWorldTransform(fl_gc, &tr, MWT_LEFTMULTIPLY); } |
