From bae6f62ea8eb16d9a826ca7dbf5b466cb460d51c Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Mon, 28 Mar 2005 13:35:12 +0000 Subject: [PATCH] Fixed window class code generation. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4198 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- fluid/Fl_Widget_Type.cxx | 2 +- fluid/Fl_Window_Type.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fluid/Fl_Widget_Type.cxx b/fluid/Fl_Widget_Type.cxx index 8923a97cb..965afeeaa 100644 --- a/fluid/Fl_Widget_Type.cxx +++ b/fluid/Fl_Widget_Type.cxx @@ -1445,7 +1445,7 @@ int isdeclare(const char *c) { void Fl_Widget_Type::write_static() { const char* t = subclassname(this); - if (!subclass()) write_declare("#include ", t); + if (!subclass() || is_class()) write_declare("#include ", t); for (int n=0; n < NUM_EXTRA_CODE; n++) { if (extra_code(n) && isdeclare(extra_code(n))) write_declare("%s", extra_code(n)); diff --git a/fluid/Fl_Window_Type.cxx b/fluid/Fl_Window_Type.cxx index beb526ceb..18d37d283 100644 --- a/fluid/Fl_Window_Type.cxx +++ b/fluid/Fl_Window_Type.cxx @@ -1350,7 +1350,7 @@ void Fl_Widget_Class_Type::write_code1() { write_c("%s::%s(int W, int H, const char *L)\n", name(), name()); write_c(" : %s(0, 0, W, H, L) {\n", c); - write_c(" clear_flag(FL_FORCE_POSITION);\n"); + write_c(" clear_flag(16);\n"); write_c(" _%s();\n", name()); write_c("}\n\n");