From: handa Date: Mon, 15 Mar 2004 13:00:28 +0000 (+0000) Subject: *** empty log message *** X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=e90952ed2bbd26f257c6fd92b59524b869400f9d;p=m17n%2Fm17n-lib.git *** empty log message *** --- diff --git a/src/draw.c b/src/draw.c index 92348f9..75894d2 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_VIDEOMODE] == Mreverse - || rface->face.property[MFACE_BACKGROUND] != Mnil)) + || rface->face.property[MFACE_BACKGROUND] != Mnil + || rface->face.property[MFACE_VIDEOMODE] == Mreverse)) { 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, 1, + mwin__fill_space (frame, win, rface, 0, 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, 0, + mwin__fill_space (frame, win, rface, 1, 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, 0, + mwin__fill_space (frame, win, rface, 1, 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, 0, + mwin__fill_space (frame, win, rface, 1, 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, 0, + mwin__fill_space (frame, win, rface, 1, rect.x, rect.y, rect.width, rect.height, control->clip_region); mwin__region_add_rect (region, &rect);