~kklimonda/ubuntu/lucid/rxvt-unicode/lp-514821

« back to all changes in this revision

Viewing changes to src/rxvtfont.C

  • Committer: Bazaar Package Importer
  • Author(s): Decklin Foster
  • Date: 2006-09-01 14:44:58 UTC
  • mfrom: (1.1.8 upstream) (3.1.1 etch)
  • Revision ID: james.westby@ubuntu.com-20060901144458-98hrz8zg01w8a3vy
Tags: 7.9-2
* Edit the comments in the app-defaults file, and disable all settings by
  default. If font autoselection fails, I would prefer to open a new bug
  specifically for that. (Closes: #385481)
* Reorganize and edit README.Debian, pushing as much as possible into FAQ
  format (with resource setting issues first).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1276
1276
  int w = term->fwidth * len;
1277
1277
  int h = term->fheight;
1278
1278
 
1279
 
  bool buffered = 0
1280
 
#if defined(XPM_BACKGROUND) || defined(TRANSPARENT)
 
1279
  bool buffered = bg >= 0                         // we don't use a transparent bg
 
1280
#ifndef FORCE_UNBUFFERED_XFT
 
1281
# if defined(XPM_BACKGROUND) || defined(TRANSPARENT)
1281
1282
                  || !term->am_transparent        // we aren't transparent
1282
1283
                  || term->am_pixmap_trans        // we have a pixmap
 
1284
# endif
1283
1285
#endif
1284
 
                  || bg >= 0;                     // we don't use a transparent bg
 
1286
                  ;
1285
1287
 
1286
1288
  // cut trailing spaces
1287
1289
  while (len && text [len - 1] == ' ')
1322
1324
        {
1323
1325
          rxvt_drawable &d2 = d.screen->scratch_drawable (w, h);
1324
1326
 
1325
 
#if defined(XPM_BACKGROUND) || defined(TRANSPARENT)
1326
 
          if (bg < 0 && term->am_pixmap_trans)
1327
 
            XCopyArea (disp, term->pixmap, d2, gc, x, y, w, h, 0, 0);
 
1327
          if (0)
 
1328
            ;
 
1329
#ifdef TRANSPARENT
 
1330
          else if (bg < 0 && term->am_pixmap_trans)
 
1331
            XCopyArea (disp, term->pixmap, d2, gc,
 
1332
                       x + term->window_vt_x, y + term->window_vt_y,
 
1333
                       w, h, 0, 0);
 
1334
#endif
 
1335
#ifdef XPM_BACKGROUND
1328
1336
          else if (bg < 0 && term->bgPixmap.pixmap)
1329
1337
            {
1330
1338
              XGCValues gcv;
1342
1350
 
1343
1351
              XFreeGC (disp, gc2);
1344
1352
            }
 
1353
#endif
1345
1354
          else
1346
 
#endif
1347
1355
            XftDrawRect (d2, &term->pix_colors[bg].c, 0, 0, w, h);
1348
1356
 
1349
1357
          XftDrawGlyphSpec (d2, &term->pix_colors[fg].c, f, enc, ep - enc);