diff options
author | Sebastian Geerken <devnull@localhost> | 2013-10-14 19:14:00 +0200 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2013-10-14 19:14:00 +0200 |
commit | 5271d9882e06d2fa8ffb2c6c4323a1fd88db81d4 (patch) | |
tree | c36b7449967dadb0f583a6428fcf5b36e4e5718b /src | |
parent | 2201fbb06e12a240f8ccb3347311f586c1fa6574 (diff) |
Reset background image of the layout.
Diffstat (limited to 'src')
-rw-r--r-- | src/uicmd.cc | 3 | ||||
-rw-r--r-- | src/web.cc | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/uicmd.cc b/src/uicmd.cc index 84e7e4cd..4f737255 100644 --- a/src/uicmd.cc +++ b/src/uicmd.cc @@ -583,6 +583,9 @@ static BrowserWindow *UIcmd_tab_new(CustTabs *tabs, UI *old_ui, int focus) Layout *layout = new Layout (platform); style::Color *bgColor = style::Color::create (layout, prefs.bg_color); layout->setBgColor (bgColor); + layout->setBgImage (NULL, style::BACKGROUND_REPEAT, + style::BACKGROUND_ATTACHMENT_SCROLL, + style::createPerLength (0), style::createPerLength (0)); // set_render_layout() sets the proper viewport size FltkViewport *viewport = new FltkViewport (0, 0, 0, 1); @@ -67,6 +67,10 @@ int a_Web_dispatch_by_type (const char *Type, DilloWeb *Web, style::Color *bgColor = style::Color::create (layout, prefs.bg_color); Web->bgColor = bgColor->getColor (); layout->setBgColor (bgColor); + layout->setBgImage (NULL, style::BACKGROUND_REPEAT, + style::BACKGROUND_ATTACHMENT_SCROLL, + style::createPerLength (0), + style::createPerLength (0)); /* Set a style for the widget */ StyleEngine styleEngine (layout); |