aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJorge Arellano Cid <jcid@dillo.org>2011-05-27 13:26:15 -0400
committerJorge Arellano Cid <jcid@dillo.org>2011-05-27 13:26:15 -0400
commit9b72578eab16832c7bf70984fb528339a3994e32 (patch)
treec70a3da26794923a84ab4dc2370038be372805ed
parent57b8dfc2cce6d65927d11fbc15667b5a410fb3de (diff)
Avoid unnecessary background redraws
-rw-r--r--src/ui.cc4
-rw-r--r--src/uicmd.cc2
2 files changed, 6 insertions, 0 deletions
diff --git a/src/ui.cc b/src/ui.cc
index 30106c21..6fc769c8 100644
--- a/src/ui.cc
+++ b/src/ui.cc
@@ -591,6 +591,7 @@ void UI::make_panel(int ww)
current(0);
if (PanelSize == P_tiny) {
NavBar = new CustGroupHorizontal(0,0,ww,nh);
+ NavBar->box(FL_NO_BOX);
NavBar->begin();
make_toolbar(ww,bh);
make_filemenu_button();
@@ -622,6 +623,7 @@ void UI::make_panel(int ww)
TopGroup->insert(*LocBar,1);
} else {
LocBar = new CustGroupHorizontal(0,0,ww,lh);
+ LocBar->box(FL_NO_BOX);
LocBar->begin();
p_xpos = 0;
make_filemenu_button();
@@ -635,6 +637,7 @@ void UI::make_panel(int ww)
// Toolbar
p_ypos = 0;
NavBar = new CustGroupHorizontal(0,0,ww,bh);
+ NavBar->box(FL_NO_BOX);
NavBar->begin();
make_toolbar(ww,bh);
w = new Fl_Box(p_xpos,0,ww-p_xpos-2*pw,bh);
@@ -659,6 +662,7 @@ void UI::make_status_bar(int ww, int wh)
{
const int bm_w = 20;
StatusBar = new CustGroupHorizontal(0, wh-sh, ww, sh);
+ StatusBar->box(FL_NO_BOX);
// Status box
StatusOutput = new Fl_Output(0, wh-sh, ww-bm_w, sh);
diff --git a/src/uicmd.cc b/src/uicmd.cc
index 275b059f..68550e41 100644
--- a/src/uicmd.cc
+++ b/src/uicmd.cc
@@ -98,6 +98,7 @@ public:
end();
Wizard = new Fl_Wizard(0,ctab_h,ww,wh-ctab_h);
+ Wizard->box(FL_NO_BOX);
Wizard->end();
};
int handle(int e);
@@ -431,6 +432,7 @@ static BrowserWindow *UIcmd_tab_new(CustTabs *tabs, UI *old_ui, int focus)
// set_render_layout() sets the proper viewport size
FltkViewport *viewport = new FltkViewport (0, 0, 0, 1);
+ viewport->box(FL_NO_BOX);
viewport->setBufferedDrawing (prefs.buffered_drawing ? true : false);
layout->attachView (viewport);
new_ui->set_render_layout(viewport);