diff options
author | corvid <corvid@lavabit.com> | 2011-05-08 22:58:39 +0000 |
---|---|---|
committer | corvid <corvid@lavabit.com> | 2011-05-08 22:58:39 +0000 |
commit | 6f807dd550576b3f6622658d6c6c55e5b0a59bc7 (patch) | |
tree | 890c0a45f117a89d2a24b23c91ed8ea25171b759 /src/ui.cc | |
parent | 3e14c7b0392808eba16343eee6ce9278c8facd11 (diff) |
fl_measure expects w to be set
Diffstat (limited to 'src/ui.cc')
-rw-r--r-- | src/ui.cc | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -200,7 +200,7 @@ public: CustProgressBox(int x, int y, int w, int h, const char *l=0) : Fl_Box(x,y,w,h,l) { padding = 0; }; void update_label(const char *lbl) { - int w,h; + int w = 0, h = 0; if (!padding) { copy_label("W"); measure_label(w, h); @@ -520,7 +520,7 @@ void UI::make_progress_bars(int wide, int thin_up) Fl_Widget *UI::make_filemenu_button() { Fl_Button *btn; - int w,h, padding; + int w = 0, h = 0, padding; FileButton = btn = new Fl_Button(p_xpos,0,0,0,"W"); btn->labeltype(FL_FREE_LABELTYPE); |