diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2010-03-16 22:51:31 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2010-03-16 22:51:31 +0000 |
| commit | 762d02fb6207c40e3c0e2ff8a9d41a510094f9c0 (patch) | |
| tree | 75d1ebfaded516aaaf7c972090a5b408c6b11638 /test | |
| parent | 1b6e7bd81272849f89b6e1c34b41de0b7d67c7f5 (diff) | |
Using Fl_Plugin feature to automatically draw OpenGL (sub)windows. No extra coding needs to be done. Just call Fl_Printer::print_widget(...). The Fl_Gl_Printer device can (and should) be removed or at least made inaccessible.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7280 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'test')
| -rw-r--r-- | test/cube.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/cube.cxx b/test/cube.cxx index 42d998477..e726b0e8f 100644 --- a/test/cube.cxx +++ b/test/cube.cxx @@ -168,7 +168,7 @@ void print_cb(Fl_Widget *w, void *data) if(!win) return; if( printer.start_job(1) ) return; if( printer.start_page() ) return; - printer.scale(0.68,0.68); + printer.scale(0.5,0.5); printer.print_widget( win ); printer.print_gl_window( cube, cube->x(), cube->y() ); printer.print_gl_window( cube2, cube2->x(), cube2->y() ); |
