ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/defaultfont.C
(Generate patch)

Comparing rxvt-unicode/src/defaultfont.C (file contents):
Revision 1.30 by pcg, Wed Mar 3 23:06:58 2004 UTC vs.
Revision 1.32 by pcg, Thu Mar 4 00:59:10 2004 UTC

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
1098bool 1098bool
1099rxvt_fontset::populate (const char *desc) 1099rxvt_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);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines