summaryrefslogtreecommitdiff
path: root/src/Fl_Widget.cxx
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2010-01-16 15:56:41 +0000
committerAlbrecht Schlosser <albrechts.fltk@online.de>2010-01-16 15:56:41 +0000
commit177f45fe98e4c7575f7817a61e91be98162d29d2 (patch)
treef351293d55638fc423f1b0637882b8d025596797 /src/Fl_Widget.cxx
parent1c6e95b54549e99188188a8b13c96875a94f1a78 (diff)
Extended Fl_Widget::align_ flag from 8 bits to full (unsigned) size for
later extensions (currently all 8 bits are used). Moved the align_ flag to the internal Fl_Label struct (where it should be). There are no API changes, though. I also reordered a few other variables for better alignment, so that there is no size change of Fl_Widget on 32-bit platforms (currently 84 bytes on Windows/32-bit and probably all 32-bit platforms). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7013 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Widget.cxx')
-rw-r--r--src/Fl_Widget.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_Widget.cxx b/src/Fl_Widget.cxx
index 31d8818aa..ff631fd49 100644
--- a/src/Fl_Widget.cxx
+++ b/src/Fl_Widget.cxx
@@ -121,6 +121,7 @@ Fl_Widget::Fl_Widget(int X, int Y, int W, int H, const char* L) {
label_.font = FL_HELVETICA;
label_.size = FL_NORMAL_SIZE;
label_.color = FL_FOREGROUND_COLOR;
+ label_.align_ = FL_ALIGN_CENTER;
tooltip_ = 0;
callback_ = default_callback;
user_data_ = 0;
@@ -130,7 +131,6 @@ Fl_Widget::Fl_Widget(int X, int Y, int W, int H, const char* L) {
box_ = FL_NO_BOX;
color_ = FL_GRAY;
color2_ = FL_GRAY;
- align_ = FL_ALIGN_CENTER;
when_ = FL_WHEN_RELEASE;
parent_ = 0;