}
if (width > 0
&& (control->as_image
- || rface->face.property[MFACE_BACKGROUND] != Mnil
- || rface->face.property[MFACE_VIDEOMODE] == Mreverse))
+ || rface->face.property[MFACE_VIDEOMODE] == Mreverse
+ || rface->face.property[MFACE_BACKGROUND] != Mnil))
{
int this_x = x, this_width = width;
this_x += fromg->width, this_width -= fromg->width;
if (g[-1].type == GLYPH_BOX)
this_width -= g[-1].width;
- mwin__fill_space (frame, win, rface, 0,
+ mwin__fill_space (frame, win, rface, 1,
this_x, y - gstring->text_ascent, this_width,
gstring->text_ascent + gstring->text_descent,
control->clip_region);
rect.x += cursor_width - 1;
rect.width = 1;
}
- mwin__fill_space (frame, win, rface, 1,
+ mwin__fill_space (frame, win, rface, 0,
rect.x, rect.y, rect.width, rect.height,
control->clip_region);
if (! region)
rect.x -= 3;
rect.height = 2;
rect.width = cursor_width < 4 ? cursor_width : 4;
- mwin__fill_space (frame, win, rface, 1,
+ mwin__fill_space (frame, win, rface, 0,
rect.x, rect.y, rect.width, rect.height,
control->clip_region);
mwin__region_add_rect (region, &rect);
rect.y = y - gstring->text_ascent;
rect.height = gstring->text_ascent + gstring->text_descent;
rect.width = 1;
- mwin__fill_space (frame, win, rface, 1,
+ mwin__fill_space (frame, win, rface, 0,
rect.x, rect.y, rect.width, rect.height,
control->clip_region);
if (! region)
rect.width = cursor_width < 4 ? cursor_width : 4;
if (! (cursor->bidi_level % 2))
rect.x -= rect.width - 1;
- mwin__fill_space (frame, win, rface, 1,
+ mwin__fill_space (frame, win, rface, 0,
rect.x, rect.y, rect.width, rect.height,
control->clip_region);
mwin__region_add_rect (region, &rect);