1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-25 01:02:24 +00:00

And fix _cursor_ display on double-width double-width characters (as

it were).

[originally from svn r4637]
This commit is contained in:
Simon Tatham 2004-10-15 12:25:51 +00:00
parent 4eef9ce190
commit aa3c6302b1

View File

@ -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,
x*inst->font_width+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 {
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;
dx = 1;
dy = 0;
length = len * char_width;
length = len * widefactor * char_width;
} else {
int xadjust = 0;
if (attr & TATTR_RIGHTCURS)