[project @ 2004-08-17 19:51:30 by jmb]

Lose optimisation

svn path=/import/netsurf/; revision=1241
This commit is contained in:
John Mark Bell 2004-08-17 19:51:30 +00:00
parent b5e04ee27a
commit 21b9ca0bf1
1 changed files with 18 additions and 29 deletions

View File

@ -292,15 +292,6 @@ bool html_redraw_box(struct box *box,
/* background colour */
if (box->style->background_color != TRANSPARENT) {
if (ro_gui_redraw_box_depth > 2) {
/* optimisation removed - transparent images break */
/* optimisation: skip if fully repeated bg image */
if (!box->background ||
(ro_gui_current_redraw_gui &&
!ro_gui_current_redraw_gui->option.background_images)
/* || box->style->background_repeat !=
CSS_BACKGROUND_REPEAT_REPEAT*/) {
error = xcolourtrans_set_gcol(
box->style->background_color << 8,
colourtrans_USE_ECFS,
@ -325,11 +316,9 @@ bool html_redraw_box(struct box *box,
}
}
}
}
/* set current background color for font painting */
current_background_color = box->style->background_color;
}
if (box->background) {
/* clip to padding box for everything but the main window */