mirror of
https://github.com/fltk/fltk.git
synced 2026-05-28 20:06:18 +08:00
Fl_Printer is now enough to print this window.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7283 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
+2
-2
@@ -159,11 +159,11 @@ void makeform(const char *name) {
|
|||||||
|
|
||||||
// added to demo printing
|
// added to demo printing
|
||||||
#include <FL/Fl_Sys_Menu_Bar.H>
|
#include <FL/Fl_Sys_Menu_Bar.H>
|
||||||
#include <FL/Fl_Gl_Printer.H>
|
#include <FL/Fl_Printer.H>
|
||||||
|
|
||||||
void print_cb(Fl_Widget *w, void *data)
|
void print_cb(Fl_Widget *w, void *data)
|
||||||
{
|
{
|
||||||
Fl_Gl_Printer printer;
|
Fl_Printer printer;
|
||||||
Fl_Window *win = Fl::first_window();
|
Fl_Window *win = Fl::first_window();
|
||||||
if(!win) return;
|
if(!win) return;
|
||||||
if( printer.start_job(1) ) return;
|
if( printer.start_job(1) ) return;
|
||||||
|
|||||||
Reference in New Issue
Block a user