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.35 by pcg, Thu Mar 4 20:09:01 2004 UTC

275 275
276 bool has_codepoint (uint32_t unicode) 276 bool has_codepoint (uint32_t unicode)
277 { 277 {
278 if (unicode <= 0x001f) 278 if (unicode <= 0x001f)
279 return true; 279 return true;
280
280 if (unicode >= 0x0080 && unicode <= 0x009f) 281 if (unicode >= 0x0080 && unicode <= 0x009f)
281 return true; 282 return true;
282 283
283 if (unicode >= 0x2500 && unicode <= 0x257f 284 if (unicode >= 0x2500 && unicode <= 0x257f
284 && linedraw_cmds[unicode - 0x2500]) 285 && linedraw_cmds[unicode - 0x2500])
286 return true;
287
288 if (IS_COMPOSE (unicode))
285 return true; 289 return true;
286 290
287 switch (unicode) 291 switch (unicode)
288 { 292 {
289 case ZERO_WIDTH_CHAR: 293 case ZERO_WIDTH_CHAR:
314 // is it in our linedrawing table? 318 // is it in our linedrawing table?
315 if (t >= 0x2500 & t <= 0x2580 && linedraw_cmds[t - 0x2500]) 319 if (t >= 0x2500 & t <= 0x2580 && linedraw_cmds[t - 0x2500])
316 { 320 {
317 const char *p = linedraw_cmds[t - 0x2500]; 321 const char *p = linedraw_cmds[t - 0x2500];
318 322
319 int x0 = x, x1 = x + r->TermWin.fwidth / 2, x2 = x + r->TermWin.fwidth - 1; 323 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; 324 int y0 = y, y1 = y + (r->TermWin.fheight - 1) / 2, y2 = y + r->TermWin.fheight - 1;
321 325
322 XGCValues gcv; 326 XGCValues gcv;
323 327
324 while (*p) 328 while (*p)
325 { 329 {
344 } 348 }
345 } 349 }
346 350
347 gcv.line_width = 0; 351 gcv.line_width = 0;
348 XChangeGC (d.display->display, GC, GCLineWidth, &gcv); 352 XChangeGC (d.display->display, GC, GCLineWidth, &gcv);
353 }
354 else if (IS_COMPOSE (t))
355 {
356 const compose_char &cc = rxvt_composite[t];
357 (void)0; //D ADD pseudo handling here
349 } 358 }
350 else 359 else
351 switch (t) 360 switch (t)
352 { 361 {
353 case ZERO_WIDTH_CHAR: 362 case ZERO_WIDTH_CHAR:

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines