mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-26 01:32:25 +00:00
And fix _cursor_ display on double-width double-width characters (as
it were). [originally from svn r4637]
This commit is contained in:
parent
4eef9ce190
commit
aa3c6302b1
@ -2078,7 +2078,7 @@ void do_cursor(Context ctx, int x, int y, wchar_t *text, int len,
|
|||||||
gdk_draw_rectangle(inst->pixmap, gc, 0,
|
gdk_draw_rectangle(inst->pixmap, gc, 0,
|
||||||
x*inst->font_width+inst->cfg.window_border,
|
x*inst->font_width+inst->cfg.window_border,
|
||||||
y*inst->font_height+inst->cfg.window_border,
|
y*inst->font_height+inst->cfg.window_border,
|
||||||
len*inst->font_width-1, inst->font_height-1);
|
len*widefactor*inst->font_width-1, inst->font_height-1);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
int uheight;
|
int uheight;
|
||||||
@ -2100,7 +2100,7 @@ void do_cursor(Context ctx, int x, int y, wchar_t *text, int len,
|
|||||||
starty = y * inst->font_height + inst->cfg.window_border + uheight;
|
starty = y * inst->font_height + inst->cfg.window_border + uheight;
|
||||||
dx = 1;
|
dx = 1;
|
||||||
dy = 0;
|
dy = 0;
|
||||||
length = len * char_width;
|
length = len * widefactor * char_width;
|
||||||
} else {
|
} else {
|
||||||
int xadjust = 0;
|
int xadjust = 0;
|
||||||
if (attr & TATTR_RIGHTCURS)
|
if (attr & TATTR_RIGHTCURS)
|
||||||
|
Loading…
Reference in New Issue
Block a user