… | |
… | |
314 | // is it in our linedrawing table? |
314 | // is it in our linedrawing table? |
315 | if (t >= 0x2500 & t <= 0x2580 && linedraw_cmds[t - 0x2500]) |
315 | if (t >= 0x2500 & t <= 0x2580 && linedraw_cmds[t - 0x2500]) |
316 | { |
316 | { |
317 | const char *p = linedraw_cmds[t - 0x2500]; |
317 | const char *p = linedraw_cmds[t - 0x2500]; |
318 | |
318 | |
319 | int x0 = x, x1 = x + r->TermWin.fwidth / 2, x2 = x + r->TermWin.fwidth - 1; |
319 | int x0 = x, x1 = x + (r->TermWin.fwidth - 1) / 2, x2 = x + r->TermWin.fwidth - 1; |
320 | int y0 = y, y1 = y + r->TermWin.fheight / 2, y2 = y + r->TermWin.fheight - 1; |
320 | int y0 = y, y1 = y + (r->TermWin.fheight - 1) / 2, y2 = y + r->TermWin.fheight - 1; |
321 | |
321 | |
322 | XGCValues gcv; |
322 | XGCValues gcv; |
323 | |
323 | |
324 | while (*p) |
324 | while (*p) |
325 | { |
325 | { |
… | |
… | |
1097 | |
1097 | |
1098 | bool |
1098 | bool |
1099 | rxvt_fontset::populate (const char *desc) |
1099 | rxvt_fontset::populate (const char *desc) |
1100 | { |
1100 | { |
1101 | clear (); |
1101 | clear (); |
|
|
1102 | printf ("P(%s)\n",desc); |
1102 | |
1103 | |
1103 | fonts.push_back (new_font (0, CS_UNICODE)); |
1104 | fonts.push_back (new_font (0, CS_UNICODE)); |
1104 | realize_font (0); |
1105 | realize_font (0); |
1105 | |
1106 | |
1106 | add_fonts (desc); |
1107 | add_fonts (desc); |