summaryrefslogtreecommitdiff
path: root/fluid
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2005-03-28 13:35:12 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2005-03-28 13:35:12 +0000
commitbae6f62ea8eb16d9a826ca7dbf5b466cb460d51c (patch)
tree927e2f4e205e159960c1a1d16d64e8531a7c1262 /fluid
parentc94a59c3f7fb34947c02ee4fc153828e8e178feb (diff)
Fixed window class code generation.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4198 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'fluid')
-rw-r--r--fluid/Fl_Widget_Type.cxx2
-rw-r--r--fluid/Fl_Window_Type.cxx2
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 <FL/%s.H>", t);
+ if (!subclass() || is_class()) write_declare("#include <FL/%s.H>", 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");