Mercurial > hg > octave-avbm
changeset 7861:7397a0026ca8
make the fltk_backend canvas the size of figure.position
author | Shai Ayal <shaiay@users.sourceforge.net> |
---|---|
date | Mon, 17 Mar 2008 18:51:36 +0200 |
parents | 67edbcb19665 |
children | 8f3459a90bf3 |
files | src/graphics/ChangeLog src/graphics/fltk_backend/fltk_backend.cc |
diffstat | 2 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/graphics/ChangeLog +++ b/src/graphics/ChangeLog @@ -1,3 +1,8 @@ +2008-03-17 Shai Ayal <shaiay@users.sourceforge.net> + + * fltk_backend/fltk_backend.cc (plot_window::resize, + plot_window::draw): make canvas the size of figure.position + 2008-03-09 Shai Ayal <shaiay@users.sourceforge.net> * fltk_backend/fltk_backend.cc (plot_window::handle): add zoom
--- a/src/graphics/fltk_backend/fltk_backend.cc +++ b/src/graphics/fltk_backend/fltk_backend.cc @@ -347,7 +347,7 @@ pos(0) = _x; pos(1) = _y; pos(2) = _w; - pos(3) = _h; + pos(3) = _h - status_h; fp.set_position (pos); } @@ -355,7 +355,7 @@ void draw (void) { Matrix pos = fp.get_position ().matrix_value (); - Fl_Window::resize (pos(0), pos(1) , pos(2), pos(3)); + Fl_Window::resize (pos(0), pos(1) , pos(2), pos(3) + status_h); return Fl_Window::draw (); }