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

Comparing rxvt-unicode/src/rxvttoolkit.C (file contents):
Revision 1.141 by sf-exg, Tue Oct 1 13:30:04 2013 UTC vs.
Revision 1.144 by sf-exg, Sun Nov 2 15:52:39 2014 UTC

6 * Copyright (c) 2003-2011 Marc Lehmann <schmorp@schmorp.de> 6 * Copyright (c) 2003-2011 Marc Lehmann <schmorp@schmorp.de>
7 * Copyright (c) 2011 Emanuele Giaquinta <e.giaquinta@glauco.it> 7 * Copyright (c) 2011 Emanuele Giaquinta <e.giaquinta@glauco.it>
8 * 8 *
9 * This program is free software; you can redistribute it and/or modify 9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by 10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or 11 * the Free Software Foundation; either version 3 of the License, or
12 * (at your option) any later version. 12 * (at your option) any later version.
13 * 13 *
14 * This program is distributed in the hope that it will be useful, 14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
279 XFree (vi); 279 XFree (vi);
280 280
281 cmap = XCreateColormap (dpy, display->root, visual, AllocNone); 281 cmap = XCreateColormap (dpy, display->root, visual, AllocNone);
282 } 282 }
283 else 283 else
284 rxvt_warn ("cannot requested visual id 0x%02x, using default visual.\n", id); 284 rxvt_warn ("no visual found for requested id 0x%02x, using default visual.\n", id);
285} 285}
286 286
287void 287void
288rxvt_screen::select_depth (int bitdepth) 288rxvt_screen::select_depth (int bitdepth)
289{ 289{
490 490
491 flags = 0; 491 flags = 0;
492#if XRENDER 492#if XRENDER
493 int major, minor; 493 int major, minor;
494 if (XRenderQueryVersion (dpy, &major, &minor)) 494 if (XRenderQueryVersion (dpy, &major, &minor))
495 if (major > 0 || (major == 0 && minor >= 10)) 495 if (major > 0 || (major == 0 && minor >= 11))
496 { 496 {
497 flags |= DISPLAY_HAS_RENDER; 497 flags |= DISPLAY_HAS_RENDER;
498
499#if 0
500 if (major > 0 || (major == 0 && minor >= 11))
501 flags |= DISPLAY_HAS_RENDER_MUL;
502#endif
503 498
504 if (XFilters *filters = XRenderQueryFilters (dpy, root)) 499 if (XFilters *filters = XRenderQueryFilters (dpy, root))
505 { 500 {
506 for (int i = 0; i < filters->nfilter; i++) 501 for (int i = 0; i < filters->nfilter; i++)
507 if (!strcmp (filters->filter [i], FilterConvolution)) 502 if (!strcmp (filters->filter [i], FilterConvolution))

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines