From a15e974676305949a2312dbafefdcb840cdad3a1 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Wed, 20 Jul 2005 11:11:51 +0000 Subject: - I enlarged the 'minimal update' area in Fl_Input_, so that characters that overlap the font box will be correctly erased during minimal redraw. The original code assumes that character fin in a box from 0,0 to charcter width/height. However, many newer fonts overlap that box and leave traces when redrawn. See 'j' and 'W' in Helvetica on Mac and Windows. - added textsize etc. support for Fluid Live Mode for Fl_Input type. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4436 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- fluid/factory.cxx | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'fluid') diff --git a/fluid/factory.cxx b/fluid/factory.cxx index aedaaa1c7..7eaf5dc87 100644 --- a/fluid/factory.cxx +++ b/fluid/factory.cxx @@ -444,6 +444,13 @@ public: } Fl_Widget_Type *_make() {return new Fl_Input_Type();} int pixmapID() { return 14; } + virtual void copy_properties() { + Fl_Widget_Type::copy_properties(); + Fl_Input_ *d = (Fl_Input_*)live_widget, *s = (Fl_Input_*)o; + d->textfont(s->textfont()); + d->textsize(s->textsize()); + d->textcolor(s->textcolor()); + } }; static Fl_Input_Type Fl_Input_type; -- cgit v1.2.3