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.16 by pcg, Sat Jan 31 00:20:21 2004 UTC vs.
Revision 1.17 by pcg, Mon Feb 9 07:11:49 2004 UTC

23#include "rxvt.h" 23#include "rxvt.h"
24#include "defaultfont.h" 24#include "defaultfont.h"
25 25
26#include <cstdlib> 26#include <cstdlib>
27 27
28#define DISPLAY r->Xdisplay 28#define DISPLAY r->display->display
29#define DRAWABLE r->TermWin.vt 29#define DRAWABLE r->TermWin.vt
30#define GC r->TermWin.gc 30#define GC r->TermWin.gc
31 31
32const struct rxvt_fallback_font { 32const struct rxvt_fallback_font {
33 codeset cs; 33 codeset cs;
891rxvt_font_xft::draw (int x, int y, 891rxvt_font_xft::draw (int x, int y,
892 const text_t *text, int len, 892 const text_t *text, int len,
893 int fg, int bg) 893 int fg, int bg)
894{ 894{
895 if (!d) 895 if (!d)
896 d = XftDrawCreate (DISPLAY, DRAWABLE, r->Xvisual, r->Xcmap); 896 d = XftDrawCreate (DISPLAY, DRAWABLE, r->display->visual, r->display->cmap);
897 897
898 if (bg >= 0 && bg != Color_bg) 898 if (bg >= 0 && bg != Color_bg)
899 XftDrawRect (d, &r->PixColors[bg].c, x, y, r->TermWin.fwidth * len, r->TermWin.fheight); 899 XftDrawRect (d, &r->PixColors[bg].c, x, y, r->TermWin.fwidth * len, r->TermWin.fheight);
900 else 900 else
901 clear_rect (x, y, r->TermWin.fwidth * len, r->TermWin.fheight, bg); 901 clear_rect (x, y, r->TermWin.fwidth * len, r->TermWin.fheight, bg);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines