projects
/
m17n
/
m17n-lib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
188e91f
)
(draw_background): Be sure to set *to_x.
author
handa
<handa>
Mon, 16 Oct 2006 00:37:43 +0000
(
00:37
+0000)
committer
handa
<handa>
Mon, 16 Oct 2006 00:37:43 +0000
(
00:37
+0000)
(render_glyph_string): If from == to, just return.
src/draw.c
patch
|
blob
|
history
diff --git
a/src/draw.c
b/src/draw.c
index
ebd6544
..
8e88cc2
100644
(file)
--- a/
src/draw.c
+++ b/
src/draw.c
@@
-1112,6
+1112,7
@@
draw_background (MFrame *frame, MDrawWindow win, int x, int y,
}
*from_idx = *to_idx = 0;
+ *to_x = x;
while (g->type != GLYPH_ANCHOR)
{
if (g->pos >= from && g->pos < to)
@@
-1434,6
+1435,8
@@
render_glyph_string (MFrame *frame, MDrawWindow win, int x, int y,
int from_idx, to_idx;
int to_x;
+ if (from == to)
+ return;
if (control->orientation_reversed)
x -= gstring->indent + gstring_width (gstring, from, to, NULL, NULL);
else