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.24 by pcg, Tue Feb 24 00:44:23 2004 UTC vs.
Revision 1.26 by pcg, Fri Feb 27 02:52:51 2004 UTC

98 { CS_UNKNOWN, 0 } 98 { CS_UNKNOWN, 0 }
99}; 99};
100 100
101///////////////////////////////////////////////////////////////////////////// 101/////////////////////////////////////////////////////////////////////////////
102 102
103#if XFT
103rxvt_drawable::~rxvt_drawable () 104rxvt_drawable::~rxvt_drawable ()
104{ 105{
105 if (xftdrawable) 106 if (xftdrawable)
106 XftDrawDestroy (xftdrawable); 107 XftDrawDestroy (xftdrawable);
107} 108}
111 if (!xftdrawable) 112 if (!xftdrawable)
112 xftdrawable = XftDrawCreate (display->display, drawable, display->visual, display->cmap); 113 xftdrawable = XftDrawCreate (display->display, drawable, display->visual, display->cmap);
113 114
114 return xftdrawable; 115 return xftdrawable;
115} 116}
117#endif
116 118
117///////////////////////////////////////////////////////////////////////////// 119/////////////////////////////////////////////////////////////////////////////
118 120
119static void *enc_buf; 121static void *enc_buf;
120static uint32_t enc_len; 122static uint32_t enc_len;
304 306
305 if (t >= 0x2500 & t <= 0x2580 && linedraw_cmds[t - 0x2500]) 307 if (t >= 0x2500 & t <= 0x2580 && linedraw_cmds[t - 0x2500])
306 { 308 {
307 const char *p = linedraw_cmds[t - 0x2500]; 309 const char *p = linedraw_cmds[t - 0x2500];
308 310
309 int x0 = x, x1 = x + r->TermWin.fwidth / 2, x2 = x + r->TermWin.fwidth ; 311 int x0 = x, x1 = x + r->TermWin.fwidth / 2, x2 = x + r->TermWin.fwidth - 1;
310 int y0 = y, y1 = y + r->TermWin.fheight / 2, y2 = y + r->TermWin.fheight; 312 int y0 = y, y1 = y + r->TermWin.fheight / 2, y2 = y + r->TermWin.fheight - 1;
311 313
312 XGCValues gcv; 314 XGCValues gcv;
313 315
314 while (*p) 316 while (*p)
315 { 317 {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines