From 5f95c91616b3531703048aa9bc3242ed63501ba0 Mon Sep 17 00:00:00 2001 From: handa Date: Sun, 14 Mar 2004 23:54:54 +0000 Subject: [PATCH] *** empty log message *** --- src/draw.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/draw.c b/src/draw.c index 75894d2..92348f9 100644 --- a/src/draw.c +++ b/src/draw.c @@ -985,8 +985,8 @@ draw_background (MFrame *frame, MDrawWindow win, int x, int y, } 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; @@ -994,7 +994,7 @@ draw_background (MFrame *frame, MDrawWindow win, int x, int y, 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); @@ -1018,7 +1018,7 @@ draw_background (MFrame *frame, MDrawWindow win, int x, int y, 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) @@ -1032,7 +1032,7 @@ draw_background (MFrame *frame, MDrawWindow win, int x, int y, 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); @@ -1067,7 +1067,7 @@ draw_background (MFrame *frame, MDrawWindow win, int x, int y, 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) @@ -1080,7 +1080,7 @@ draw_background (MFrame *frame, MDrawWindow win, int x, int y, 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); -- 1.7.10.4