aboutsummaryrefslogtreecommitdiff
path: root/src/form.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/form.cc')
-rw-r--r--src/form.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/form.cc b/src/form.cc
index 9f1a7040..8c6a277a 100644
--- a/src/form.cc
+++ b/src/form.cc
@@ -857,7 +857,7 @@ void Html_tag_open_button(DilloHtml *html, const char *tag, int tagsize)
char *name, *value;
page = new Textblock (prefs.limit_text_width);
- page->setStyle (html->styleEngine->style ());
+ page->setStyle (html->styleEngine->backgroundStyle ());
ResourceFactory *factory = HT2LT(html)->getResourceFactory();
Resource *resource = factory->createComplexButtonResource(page, true);
@@ -1912,7 +1912,7 @@ static Embed *Html_input_image(DilloHtml *html, const char *tag, int tagsize)
/* create new image and add it to the button */
if ((Image = a_Html_image_new(html, tag, tagsize, url))) {
- IM2DW(Image)->setStyle (html->styleEngine->style ());
+ IM2DW(Image)->setStyle (html->styleEngine->backgroundStyle ());
ResourceFactory *factory = HT2LT(html)->getResourceFactory();
ComplexButtonResource *complex_b_r =
factory->createComplexButtonResource(IM2DW(Image), false);