FLTK logo

[Library] r9032 - branches/branch-1.3/src

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.commit  ]
 
Previous Message ]Next Message ]

[Library] r9032 - branches/branch-1.3/src fltk-dev Sep 08, 2011  
 
Author: manolo
Date: 2011-09-08 01:09:20 -0700 (Thu, 08 Sep 2011)
New Revision: 9032
Log:
Mac OS: center on page the "Print Front Window" application menu command.

Modified:
   branches/branch-1.3/src/Fl_cocoa.mm

Modified: branches/branch-1.3/src/Fl_cocoa.mm
===================================================================
--- branches/branch-1.3/src/Fl_cocoa.mm	2011-09-07 12:18:14 UTC (rev 9031)
+++ branches/branch-1.3/src/Fl_cocoa.mm	2011-09-08 08:09:20 UTC (rev 9032)
@@ -2848,6 +2848,7 @@
     scale = (float)w/win->w();
     if ((float)h/wh < scale) scale = (float)h/wh;
     printer.scale(scale);
+    printer.printable_rect(&w, &h);
   }
 //#define ROTATE 1
 #ifdef ROTATE
@@ -2855,10 +2856,10 @@
   printer.printable_rect(&w, &h);
   printer.origin(w/2, h/2 );
   printer.rotate(20.);
-  printer.print_window( win, - win->w()/2, - win->h()/2 );
 #else
-  printer.print_window(win);
+  printer.origin(w/2, h/2);
 #endif
+  printer.print_window(win, -ww/2, -wh/2);
   printer.end_page();
   printer.end_job();
   fl_unlock_function();

Direct Link to Message ]
 
     
Previous Message ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.