changeset 2056:c7e61b0a1515

Avoid unnecessary background redraws
author Jorge Arellano Cid <jcid@dillo.org>
date Fri, 27 May 2011 13:26:15 -0400
parents d8eaa1203895
children b24e8b62bef3
files src/ui.cc src/uicmd.cc
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/ui.cc	Fri May 27 15:20:08 2011 +0000
+++ b/src/ui.cc	Fri May 27 13:26:15 2011 -0400
@@ -591,6 +591,7 @@
    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 @@
           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 @@
        // 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 @@
 {
    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);
--- a/src/uicmd.cc	Fri May 27 15:20:08 2011 +0000
+++ b/src/uicmd.cc	Fri May 27 13:26:15 2011 -0400
@@ -98,6 +98,7 @@
       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 @@
 
    // 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);