summaryrefslogtreecommitdiff
path: root/fluid/factory.cxx
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2020-11-17 16:11:03 +0100
committerAlbrecht Schlosser <albrechts.fltk@online.de>2020-11-17 16:11:03 +0100
commit5cb72ef065f53d8f8759a6b6cccd35a2f367f290 (patch)
tree31c76e99f59639c2ca2a9443c4e5806cd163726c /fluid/factory.cxx
parent2931c29689a91375e610a6a8bca28fe2b10b268f (diff)
Fix whitespace and minor formatting issues
Diffstat (limited to 'fluid/factory.cxx')
-rw-r--r--fluid/factory.cxx21
1 files changed, 8 insertions, 13 deletions
diff --git a/fluid/factory.cxx b/fluid/factory.cxx
index 23f903498..72ad7737c 100644
--- a/fluid/factory.cxx
+++ b/fluid/factory.cxx
@@ -188,8 +188,7 @@ public:
w -= Fl::box_dw(o->box());
int ww = (int)fl_width('m');
w = ((w + ww - 1) / ww) * ww + Fl::box_dw(o->box());
- h = ((h + fl_height() - 1) / fl_height()) * fl_height() +
- Fl::box_dh(o->box());
+ h = ((h + fl_height() - 1) / fl_height()) * fl_height() + Fl::box_dh(o->box());
if (h < 30) h = 30;
if (w < 50) w = 50;
}
@@ -236,8 +235,7 @@ public:
w -= Fl::box_dw(o->box()) - fl_height();
int ww = (int)fl_width('m');
w = ((w + ww - 1) / ww) * ww + Fl::box_dw(o->box());
- h = ((h + fl_height() - 1) / fl_height()) * fl_height() +
- Fl::box_dh(o->box());
+ h = ((h + fl_height() - 1) / fl_height()) * fl_height() + Fl::box_dh(o->box());
if (h < 30) h = 30;
if (w < 50) w = 50;
}
@@ -311,8 +309,7 @@ public:
w -= Fl::box_dw(o->box()) + fl_height();
int ww = (int)fl_width('m');
w = ((w + ww - 1) / ww) * ww + Fl::box_dw(o->box());
- h = ((h + fl_height() - 1) / fl_height()) * fl_height() +
- Fl::box_dh(o->box());
+ h = ((h + fl_height() - 1) / fl_height()) * fl_height() + Fl::box_dh(o->box());
if (h < 30) h = 30;
if (w < 50) w = 50;
}
@@ -403,7 +400,8 @@ public:
virtual const char *alt_type_name() {return "fltk::Spinner";}
int is_spinner() const { return 1; }
Fl_Widget *widget(int x,int y,int w,int h) {
- return new Fl_Spinner(x,y,w,h,"spinner:");}
+ return new Fl_Spinner(x,y,w,h,"spinner:");
+ }
Fl_Widget_Type *_make() {return new Fl_Spinner_Type();}
};
static Fl_Spinner_Type Fl_Spinner_type;
@@ -532,8 +530,7 @@ public:
w -= Fl::box_dw(o->box());
int ww = (int)fl_width('m');
w = ((w + ww - 1) / ww) * ww + Fl::box_dw(o->box());
- h = ((h + fl_height() - 1) / fl_height()) * fl_height() +
- Fl::box_dh(o->box());
+ h = ((h + fl_height() - 1) / fl_height()) * fl_height() + Fl::box_dh(o->box());
if (h < 30) h = 30;
if (w < 50) w = 50;
}
@@ -574,8 +571,7 @@ public:
w -= Fl::box_dw(o->box());
int ww = (int)fl_width('m');
w = ((w + ww - 1) / ww) * ww + Fl::box_dw(o->box());
- h = ((h + fl_height() - 1) / fl_height()) * fl_height() +
- Fl::box_dh(o->box());
+ h = ((h + fl_height() - 1) / fl_height()) * fl_height() + Fl::box_dh(o->box());
if (h < 30) h = 30;
if (w < 50) w = 50;
}
@@ -654,8 +650,7 @@ public:
w -= Fl::box_dw(o->box());
int ww = (int)fl_width('m');
w = ((w + ww - 1) / ww) * ww + Fl::box_dw(o->box());
- h = ((h + fl_height() - 1) / fl_height()) * fl_height() +
- Fl::box_dh(o->box());
+ h = ((h + fl_height() - 1) / fl_height()) * fl_height() + Fl::box_dh(o->box());
if (h < 30) h = 30;
if (w < 50) w = 50;
}